100% found this document useful (1 vote)
425 views

Compiler Design Quiz Questions and Answers

The document contains 5 questions about compiler design topics like parsing methods, tables used in compilers, and loop optimization techniques. Each question is multiple choice and includes the correct answer. The questions cover topics such as the terminal table, lexical analysis, right-most derivation in reverse parsing, shift-reduce parsing, and loop jamming.

Uploaded by

Sami Boy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
425 views

Compiler Design Quiz Questions and Answers

The document contains 5 questions about compiler design topics like parsing methods, tables used in compilers, and loop optimization techniques. Each question is multiple choice and includes the correct answer. The questions cover topics such as the terminal table, lexical analysis, right-most derivation in reverse parsing, shift-reduce parsing, and loop jamming.

Uploaded by

Sami Boy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like