In the context of compilers, which of the following is/are NOT an intermediate representation of the source program?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2021 Set 2 · Q13
Time
Select all that applyOne or more correct
Solution
Official answer: D) Symbol table
Intermediate Code GenerationIntermediate representations (IR) are data structures or languages used by a compiler internally to represent the source code during compilation (between front-end analysis and back-end code generation).
Three address code (TAC): A linear intermediate representation where each instruction has at most three operands.
Abstract Syntax Tree (AST): A tree-based intermediate representation representing the hierarchical syntactic structure of the source program.
Control Flow Graph (CFG): A graphical intermediate representation that captures the flow of control through basic blocks of a program.
Symbol table: A data structure used by compilers to store information about source-program identifiers (e.g., variable names, types, scope, memory locations). It is not an intermediate representation of the program itself.
Therefore, the only option that is NOT an intermediate representation is (D).
Try the question first, then check your work.
Examiner trap
Recall the data structure used to store information about variable types, scopes, and memory locations versus representations that encode the program's executable structure and flow.
This Intermediate Code Generation previous year question is Q13 of the GATE CSE 2021 Set 2 paper. Find more GATE CSE PYQs on Intermediate Code Generation in Compiler Design, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Intermediate Code Generation PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Intermediate Code Generation has 14 GATE CSE PYQs across 12 papers from 2011 to 2025. This is the only 1-mark MSQ among them, and it is the only one in GATE CSE 2021 Set 2.
How GATE tests Intermediate Code GenerationIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.