WorksheetsCOMPILER DESIGN Introduction Quiz
Total questions: 26
Worksheet time: 13mins
What is the main purpose of lexical analysis in compiler design?
To debug the syntax errors
To execute the program
To break the input program into a sequence of tokens
To optimize the code
1. What is a compiler?
system program that converts instructions to machine language
system program that converts machine language to high-level language
system program that writes instructions to perform
None of the mentionedGenerating machine code
What is a token in compiler design?
A type of currency used in programming
A small insect that causes errors in code
A function used to compile code
A sequence of characters that represents a single element of a programming language
What is the role of a lexer in lexical analysis?
To break the input into tokens
To optimize the code for faster execution
To analyze the syntax of the input
To format the output into a readable form
Which of the following is not a part of lexical analysis?
Semantic analysis
Syntax analysis
Code generation
Code optimization
What is the purpose of regular expressions in lexical analysis?
To change the font style of the input text
To define patterns for identifying tokens in the input text
To count the number of characters in the input text
To create random patterns in the input text
What is a lexeme in lexical analysis?
Smallest unit of a language with semantic meaning
A type of flower
A musical instrument
A type of punctuation mark
Which of the following is not a type of token in lexical analysis?
Keywords
Variables
Operators
Functions
What is the output of the lexical analysis phase in compiler design?
Sequence of tokens
Syntax tree
List of keywords
Machine code
What is the significance of lexical analysis in compiler design ?
It converts the input program into a sequence of tokens
It checks for syntax errors in the program
It optimizes the code for better performance
It generates the final machine code
What is a token in compiler design ?
what is the difference between a lexeme and token ?
what is a mission statement reflects in new educational policy
what is a vision statement reflects in new educational policy
What is the diference between vision and mission of new education policy ?
what is program specific outcome in new educational policy ?
What is the difference between a PO and PSO in educational policy ?
As per NEP 2020, B.Tech refers to
Subject
Program
Course
None of the above
What is the difference between course objective and course outcome ?
how do we know that a course objective has attained
what are attainments in evaluation of a program ?
when is national education policy enacted(INDIAN) ?
what is OBE ?
education must develop cognitive capacities like critical thinking and problem-solving attitude– but also social, ethical, and emotional capacities and dispositions.
this is reflected in new education policy
designed by AICTE
designed by UGC
parliament
The apex body in India for technical education is
The course out comes for compiler design lab in B.Tech Program
