Compiler Design Quiz Questions and Answers - 2

Question: 6

A permanent database in the general model of compiler is

(A) Source code

(B) Terminal table

(C) Identifier table

(D) Literal table

Ans: B

Terminal table

Question: 7

Which of the following actions an operator-precedence parser may take to recover from an error?

(A) Insert symbols onto the stack

(B) Delete symbols from the stack

(C) Insert or delete symbols from the input

(D) All of these

Ans: D

All of these

Question: 8

Which of the following system software resides in main memory always?

(A) Text editor

(B) Assembler

(C) Linker

(D) All of these

Ans: D

All of these

Question: 9

Left factoring is the process of factoring out the common

(A) Prefixes of alternates

(B) Suffixes of alternates

(C) Both(a) and (b)

(D) None of these

Ans: A

Prefixes of alternates

Question: 10

______ is/are parts of the compiler.

(A) Execution part

(B) Analysis part

(C) Synthesis part

(D) Both B and C

Ans: D

Both B and C

Related Questions