Types of Compilers (Single-pass, Multi-pass, Just-in-time) MCQs January 8, 2026December 13, 2024 by u930973931_answers 10 min Score: 0 Attempted: 0/10 Subscribe 1. What is a key characteristic of a single-pass compiler? (A) It processes the source code multiple times (B) It translates the code directly into machine code (C) It processes the source code only once (D) It performs optimization during compilation 2. Which of the following is a feature of a multi-pass compiler? (A) It compiles the program in a single pass (B) It directly produces machine code without intermediate steps (C) It does not perform optimization (D) It uses multiple passes to process the source code 3. What is the main advantage of a multi-pass compiler over a single-pass compiler? (A) It can handle complex languages with more features (B) It requires fewer resources (C) It is faster in compiling large programs (D) It can translate high-level language into machine code more quickly 4. In which type of compiler is the translation of code done at runtime? (A) Single-pass compiler (B) Just-in-time compiler (C) Multi-pass compiler (D) Batch compiler 5. Which of the following is an advantage of Just-in-time (JIT) compilation? (A) It compiles the entire program in advance (B) It is faster than single-pass compilers but slower than multi-pass compilers (C) It uses multiple passes to optimize the code (D) It compiles code just before execution, making it faster for runtime 6. Which type of compiler performs translation during the execution of the program? (A) Single-pass compiler (B) Just-in-time compiler (C) Multi-pass compiler (D) Interpreter 7. What is the key difference between a single-pass compiler and a multi-pass compiler? (A) A single-pass compiler processes the code once, while a multi-pass compiler processes it several times (B) A multi-pass compiler takes only one pass to complete the translation (C) A single-pass compiler takes multiple passes to complete the translation (D) A multi-pass compiler translates to machine code, while a single-pass compiler only checks for syntax errors 8. Which of the following is a disadvantage of a single-pass compiler? (A) It takes longer to compile code (B) It requires multiple passes to process complex languages (C) It cannot handle runtime errors (D) It cannot optimize the code as efficiently 9. In which compiler type is the program translated into machine code only when it is executed? (A) Single-pass compiler (B) Multi-pass compiler (C) Just-in-time compiler (D) Pre-processor 10. Which of the following best describes a multi-pass compiler’s operation? (A) It translates the entire code in one go (B) It performs syntax checking and code translation simultaneously (C) It compiles and executes code without checking for errors (D) It breaks the compilation process into several passes, each responsible for a specific task