Compiler Design Quiz Questions and Answers Pdf
Question: 1
Which table is a permanent database that has an entry for each
terminal symbol?
(A) Reductions
(B) Identifier table
(C) Literal table
(D) Terminal table
Ans: D
Terminal table
Question: 2
The action of parsing the source program into proper syntactic
classes is called
(A) General syntax analysis
(B) Interpretation analysis
(C) Syntax analysis
(D) Lexical analysis
Ans: D
Lexical analysis
Question: 3
A bottom-up parser generates
(A) Left-most derivation in reverse
(B) Left-most derivation
(C) Right-most derivation in reverse
(D) Right –most derivation
Ans: C
Right-most derivation in reverse
Question: 4
The bottom-up parsing method is also called
(A) Shift reduce parsing
(B) Predictive parsing
(C) Recursive descent parsing
(D) None of these
Ans: A
Shift reduce parsing
Question: 5
The method which merges the bodies of two loops is
(A) Constant folding
(B) Loop jamming
(C) Loop unrolling
(D) None of these
Ans: B
Loop jamming