1000+ Compiler Construction Exam Questions and Answers - 1

Question: 1

Which of the following statements is true?

(A) The parsers SLR, Canonical CR and LALR have the same power

(B) Canonical LR parser is more powerful than LALR parser

(C) LALR parser is more powerful than Canonical LR parser

(D) SLR parser is more powerful than LALR

Ans: B

Canonical LR parser is more powerful than LALR parser

Question: 2

Local and loop optimization in turn provide motivation for

(A) DFA and constant folding

(B) Pee hole optimization

(C) Constant folding

(D) Data flow analysis

Ans: D

Data flow analysis

Question: 3

Minimum hamming distance method is used for connection of

(A) Algorithm errors

(B) Semantic errors

(C) Syntactic errors

(D) Semantic errors

Ans: C

,

Syntactic errors

Question: 4

Which of the following are language processor?

(A) Assembler

(B) Compilers

(C) Interpreters

(D) All of these

Ans: D

All of these

Question: 5

Which one of the following is NOT performed during compilation?

(A) Dynamic memory allocation

(B) Inline expansion

(C) Symbol table management

(D) Type checking

Ans: A

Dynamic memory allocation

Related Questions