Quiz Space

Compiler Design · Quiz 1 · 19 Jul 2026 · May 2026 term

Question 2: Which of the following describes a key programmatic diffe…

Question 2

+2 marksOne correct option

Which of the following describes a key programmatic difference between the functionality of an Interpreter and a Compiler toolchain?

  1. A

    Compilers execute code step-by-step at runtime, whereas interpreters translate the entire source program before execution.

  2. B

    Interpreters can provide immediate statement-level runtime feedback.

  3. C

    The machine-language target program produced by a compiler is typically 10 to 100 times slower than interpreter execution.

  4. D

    Compilers completely eliminate the need for a runtime environment or stack frame allocation.

Show answer

Correct answer

  • B

    Interpreters can provide immediate statement-level runtime feedback.

Question 2 of 16 in the IIT Madras BS Compiler Design (Compiler Design) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term (Compiler Design 16 Jul 26). It carries 2 marks.

More questions from this paper

  1. Q1Consider the following compiler phases and compiler tasks. Which one of the following correctly matches the compiler ph…
  2. Q3Figure question
  3. Q4Figure question
  4. Q5A compiler architecture uses a common Intermediate Representation (IR). Initially, it supports 6 source languages and 4…
  5. Q6Which of the following is NOT a responsibility of the lexical analyzer?
  6. Q7Figure question
  7. Q8Figure question
  8. Q9Which of the following statements correctly describes machine-independent optimizations?
  9. Q10Consider the following declarations: The compiler generates Three-Address Code (TAC) for the statement
  10. Q11Figure question
  11. Q12A compiler performs lexical analysis and stores: every unique identifier in the Symbol Table,• every unique integer con…
  12. Q13Assume that any undefined transition leads to a dead (trap) state, which is not shown in the table.\ Which of the follo…
  13. Q14A compiler back-end generates the following Three-Address Code (TAC) for an image enhancement algorithm.
  14. Q15Which of the following strings are accepted by the DFA?
  15. Q16Consider the following statements about Deterministic Finite Automata (DFA) and Nondeterministic Finite Automata (NFA).…