Skip to main content

Compiler Construction MCQs with Answers

Practice important Compiler Construction MCQs with answers and explanations.

Multiple Choice Questions

Q81: Which part of the compiler is responsible for choosing machine instructions?
  • A: Front end
  • B: Parser
  • C: Back end
  • D: Scanner
View Answer
C

Q82: Register access is preferred over memory access because it is ______.
  • A: More secure
  • B: Faster
  • C: More portable
  • D: More visible
View Answer
B

Q83: Instruction selection in the compiler is mainly handled by ______.
  • A: Parser
  • B: Scanner
  • C: Back end
  • D: Optimizer
View Answer
C

Q84: Which of the following affects code speed and compactness?
  • A: Number of variables
  • B: Instruction selection
  • C: Token count
  • D: Loop unrolling
View Answer
B

Q85: The back end ensures conformance with ______.
  • A: User interface
  • B: Programming language semantics
  • C: System interfaces
  • D: Code comments
View Answer
C

Q86: Instruction selection is often solved using ______ algorithms.
  • A: Greedy
  • B: Recursive
  • C: Dynamic programming
  • D: Divide and conquer
View Answer
C

Q87: Instruction selection is viewed as a ______ problem.
  • A: Search
  • B: Tree
  • C: Pattern matching
  • D: Backtracking
View Answer
C

Q88: What is one way the back end improves performance?
  • A: By printing warnings
  • B: By minimizing variables
  • C: By avoiding memory access
  • D: By rewriting source code
View Answer
C

Q89: Which system architecture inspired compiler instruction selection?
  • A: RISC
  • B: VAX-11
  • C: VLSI
  • D: Pipelined CPU
View Answer
B

Q90: The VAX-11 used which kind of architecture?
  • A: RISC
  • B: CISC
  • C: Pipelined
  • D: RISC-V
View Answer
B

Test Your Knowledge

Take a timed quiz on Compiler Construction

🚀 Start Quiz Now