GATE CS 2025 (Afternoon) — Question 21

Compiler DesignIntermediate Code Generation & Local Code OptimizationMCQ1 mark · −1/3 if wrongMedium

Consider the following statements about the use of backpatching in a compiler for intermediate code generation: (I) Backpatching can be used to generate code for Boolean expression in one pass. (II) Backpatching can be used to generate code for flow-of-control statements in one pass. Which ONE of the following options is CORRECT?
  1. A
    Only (I) is correct.
  2. B
    Only (II) is correct.
  3. C
    Both (I) and (II) are correct.
  4. D
    Neither (I) nor (II) is correct.
Practise the full 2025-AN paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkCompilers: Principles, Techniques & ToolsThe "Dragon Book" for parsing, syntax-directed translation and code generation.
Practise more on Intermediate Code Generation & Local Code OptimizationTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group