Compiler Design Objective Questions and Answers - 2

Question: 6

_____ is considered as a sequence of characters in a token.

(A) Pattern

(B) Texeme

(C) Lexeme

(D) Mexeme

Ans: C

Lexeme

Question: 7

____ or scanning is the process, where the stream of characters making up the source program is read from left to right and grouped into tokens.

(A) Modeling

(B) Diversion

(C) Lexical analysis

(D) All of these

Ans: C

Lexical analysis

Question: 8

LR stands for

(A) Left to right

(B) Left to right reduction

(C) Right to left

(D) Left to right and right most derivation in reverse

Ans: D

Left to right and right most derivation in reverse

Question: 9

Recursive descent parsing belongs to the class of

(A) Top-down parsing

(B) Bottom-up parsing

(C) Predictive parsing

(D) None of these

Ans: A

Top-down parsing

Question: 10

The graph depicting the inter-dependencies of the attribute of different nodes in a parse is called

(A) Dependency graph

(B) Karnaugh’s graph

(C) Steffi graph

(D) Flow graph

Ans: C

Steffi graph

Related Questions