Compiler Construction MCQs with Answers
Practice important Compiler Construction MCQs with answers and explanations.
Multiple Choice Questions
Q91: CISC stands for ______.
- A: Common Instruction System Code
- B: Compiler Instruction Set Code
- C: Complex Instruction Set Computer
- D: Compact Instruction Selection Code
View Answer
C
Q92: What feature of VAX-11 supported advanced instruction selection?
- A: Limited addressing modes
- B: Small instruction set
- C: Rich instruction set
- D: Fixed pipeline
View Answer
C
Q93: AST stands for ______.
- A: Abstract Syntax Tree
- B: Assembled Structure Tree
- C: Advanced Syntax Translator
- D: Applied Semantic Tree
View Answer
A
Q94: What does the back end use to implement each IR operation?
- A: Grammar rules
- B: Machine instructions
- C: Tokens
- D: Error handlers
View Answer
B
Q95: Which tree is more efficient for optimization tasks?
- A: Parse Tree
- B: Abstract Syntax Tree
- C: Expression Tree
- D: Token Tree
View Answer
B
Q96: The goal of instruction selection is to produce ______.
- A: Secure code
- B: Fast and compact code
- C: Longer code
- D: Complex expressions
View Answer
B
Q97: Which tree includes unnecessary grammatical information?
- A: Abstract Syntax Tree
- B: Parse Tree
- C: Syntax Directed Tree
- D: Binary Tree
View Answer
B
Q98: What does the AST for x + 2 - y represent at the top level?
- A: Assignment
- B: Subtraction
- C: Addition
- D: Multiplication
View Answer
C
Q99: In AST, internal nodes typically represent ______.
- A: Tokens
- B: Variables
- C: Operators
- D: Errors
View Answer
C
Q100: How many operands are used in the AST for x + 2 - y?
- A: 1
- B: 2
- C: 3
- D: 4
View Answer
C