Compiler Construction MCQs with Answers
Practice important Compiler Construction MCQs with answers and explanations.
Multiple Choice Questions
Q121: Run-time type checking ensures ______.
- A: Code comments are valid
- B: Memory is released properly
- C: Correct data types at execution
- D: Registers are reused
View Answer
C
Q122: Which of the following is **not** a responsibility of the runtime system?
- A: Register allocation
- B: Garbage collection
- C: Run-time error handling
- D: Parallel thread management
View Answer
A
Q123: Which resource may a process request from the OS at runtime?
- A: Input/Output
- B: Compilation
- C: Parsing
- D: Linking
View Answer
A
Q124: The application may spawn ______ at runtime.
- A: More classes
- B: More processes or threads
- C: More headers
- D: More compilers
View Answer
B
Q125: Support for communication and synchronization is crucial in ______.
- A: Code optimization
- B: Sequential programs
- C: Parallel execution
- D: Runtime linker
View Answer
D
Q126: Garbage collection occurs during ______.
- A: Compilation
- B: Linking
- C: Run-time
- D: Parsing
View Answer
C
Q127: What term describes a computation that can be skipped without affecting results?
- A: Redundant
- B: Recursive
- C: Traced
- D: Abstract
View Answer
A
Q128: Which stage of the compiler deals with syntax and semantic analysis?
- A: Front end
- B: Back end
- C: Middle end
- D: Runtime
View Answer
A
Q129: What follows after code generation in a compiler?
- A: Optimization
- B: Execution
- C: Linking
- D: Error checking
View Answer
B
Q130: In instruction scheduling, functional units must be ______.
- A: Bypassed
- B: Shut down
- C: Used productively
- D: Compiled separately
View Answer
C