YOU CAN DOWNLOAD 200+ SUBJECTS PDF BOOK FOR COMPETITIVE EXAMINATIONS
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) Syntax analysis | |
b) Lexical analysis | |
c) Interpretation analysis | |
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) ( L$\cup$ D ) * | |
b) L ( L $cup$ D)* | |
c) ( L . D )* | |
d) L . ( L . D )* |
Question 43 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
Compilers... [2 answers]
Create a single executable file | |
correctchoice Take a long time to translate | |
Are useful for debugging | |
Only translate assembly code |
Question 44 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
Which is the last phase of the compiler?
Code optimization | |
Code generation | |
Intermediate code generation | |
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.
1 only | |
2 only | |
1 and 4 only | |
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.
True | |
False |
Question 47 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
Java is architecturally .....
Specific | |
Oriented | |
Neutral | |
Abstract |
Question 48 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
1. Peep-hole optimization is a form of
loop optimization | |
local optimization | |
constant folding | |
data flow analysis |
Question 49 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
Which of the following parsers is the most powerful?
SLR(1) | |
CLR(1) | |
LALR(1) | |
Operator Precedence |
Question 50 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
A multiple-line comments are format in
\* ..... *\ | |
\ # ..... #\ | |
/* ..... */ | |
/# ..... #/ |
There are 50 questions to complete.