Top 150+ Compiler Design MCQ Questions and Answers - 2

Question: 6

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: 7

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: 8

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: 9

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: 10

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

Related Questions