Principles of Compiler Design

YOU CAN DOWNLOAD 200+ SUBJECTS PDF BOOK FOR COMPETITIVE EXAMINATIONS

CLICK HERE TO DOWNLOAD

Principles of Compiler Design

Question 41 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The action of parsing the source program into proper syntactic classes is called .....

A
a) Syntax analysis
B
b) Lexical analysis
C
c) Interpretation analysis
D
d) General syntax analysis
Question 42 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In some programming languages, an identifier is permitted to be a letter followed by any number of letters or digits. If L and D denotes the sets of letters and digits respectively, which of the following expressions define an identifier?

A
a) ( L$\cup$ D ) *
B
b) L ( L $cup$ D)*
C
c) ( L . D )*
D
d) L . ( L . D )*
Question 43 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Compilers... [2 answers]

A
Create a single executable file
B
correctchoice Take a long time to translate
C
Are useful for debugging
D
Only translate assembly code
Question 44 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is the last phase of the compiler?

A
Code optimization
B
Code generation
C
Intermediate code generation
D
Syntax analyzer
Question 45 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the following two sets of LR (1) items of an LR (1) grammar.

X -> c.X, c/d

X -> .cX, c/d

X -> .d, c/d

X -> c.X, $

X -> .cX, $

X -> .d, $

Which one is true?

1. Cannot be merged since look ahead's are different.

2. Can be merged but will result in S-R conflict.

3. Can be merged but will result in R-R conflict.

4. Cannot be merged since goto on c will lead to two different sets.

A
1 only
B
2 only
C
1 and 4 only
D
1, 2, 3 and 4 only
Question 46 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The given automata accepts odd number of a's.

Compiler design MCQ
A
True
B
False
Question 47 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Java is architecturally .....

A
Specific
B
Oriented
C
Neutral
D
Abstract
Question 48 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
1. Peep-hole optimization is a form of

A
loop optimization
B
local optimization
C
constant folding
D
data flow analysis
Question 49 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following parsers is the most powerful?

A
SLR(1)
B
CLR(1)
C
LALR(1)
D
Operator Precedence
Question 50 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A multiple-line comments are format in

A
\* ..... *\
B
\ # ..... #\
C
/* ..... */
D
/# ..... #/
There are 50 questions to complete.