Compiler Design | Questions and Answers

Compiler Design | Mock Test

Question 1
The run time environment represents recursive call as Activation Record
Select one:
a. True
b. False

Feedback
The correct answer is: True

Question 2
the statement followed by a conditional jump is a leader
Select one:
a. False
b. True
Feedback
The correct answer is: True

Question 3
LR parser is an example for Top – down design for parser
Select one:
a. False
b. True
Feedback
The correct answer is: False

Question 4
The linux command grep stands
Select one:
a. none of the above
b. global regular execute pattern
c. gedit row edit print
d. globally search a regular expression and print
Feedback
The correct answer is: globally search a regular expression and print

Question 5
Parsing is also Known as:
Select one:
a. Code generation
b. Syntax Analysis
c. Lexical Analysis
d. Semantic Analysis
Feedback
The correct answer is: Syntax Analysis

Question 6
FOLLOW set is computed for only non-terminals/variables
Select one:
a. False
b. True
Feedback
The correct answer is: True

Question 7
predictive parser can be
Select one:
a. Recursive and constructive
b. Non Recursive
c. Constructive
d. Recursive
Feedback
The correct answer is: Recursive

Question 8
Control Flow Graph uses stack based address format
Select one:
a. True
b. False
Feedback
The correct answer is: False

Question 9
In DAG form of the Abstract Syntax Tree the common sub-expressions are
eliminated
Select one:
a. False
b. True
Feedback
The correct answer is: True

Question 10
In a two pass assembler the object code generation is done during the ?
Select one:
a. None of these
b. Second pass
c. First pass
d. Zeroed Pass
Feedback
The correct answer is: Second pass