Quiz Space

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

Question 9: Which of the following statements correctly describes mac…

Question 9

+2 marksOne or more correct options

Which of the following statements correctly describes machine-independent optimizations?

Select all that apply.

  1. A

    They can be performed before generating target machine code.

  2. B

    They depend on the instruction set of the target processor.

  3. C

    Constant Folding is an example of machine-independent optimization.

  4. D

    Copy Propagation is an example of machine-independent optimization.

Show answer

Correct answers

  • A

    They can be performed before generating target machine code.

  • C

    Constant Folding is an example of machine-independent optimization.

  • D

    Copy Propagation is an example of machine-independent optimization.

Question 9 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. Q2Which of the following describes a key programmatic difference between the functionality of an Interpreter and a Compil…
  3. Q3Figure question
  4. Q4Figure question
  5. Q5A compiler architecture uses a common Intermediate Representation (IR). Initially, it supports 6 source languages and 4…
  6. Q6Which of the following is NOT a responsibility of the lexical analyzer?
  7. Q7Figure question
  8. Q8Figure question
  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).…