
Phases of compiler Quiz
Authored by sajuraj T
Other
University
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main task of the lexical analysis phase?
Syntax checking
Token generation
Intermediate code generation
Code optimization
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following tools is commonly used for lexical analysis?
YACC
Lex
GCC
Bison
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a token in programming?
Variable name
Keyword
Operator
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the lexical analysis phase?
Abstract syntax tree
Tokens
Symbol table
Machine code
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary goal of syntax analysis?
Generate tokens
Verify grammatical structure
Optimize code
Generate machine code
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is commonly used during syntax analysis?
Parse tree
Symbol table
Stack
Both A and C
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of grammar is typically used in syntax analysis?
Context-sensitive grammar
Regular grammar
Context-free grammar
Ambiguous grammar
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?