Which ONE of the following statements is FALSE regarding the symbol table?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 1 · Q12
Time
Select one answerSingle correct
Solution
Official answer: C) Symbol table is not required after the parsing phase.
Lexical AnalysisA symbol table is a central data structure maintained by the compiler to store information about identifiers (such as variable names, function names, types, scope, and memory offsets).
Option A is true: A symbol table is used to track the scope and visibility of identifiers (e.g., using block-structured symbol tables).
Option B is true: Symbol tables can be implemented using data structures like hash tables, binary search trees, linked lists, or linear lists.
Option C is false: The symbol table is essential throughout almost all phases of the compiler, including semantic analysis (for type and declaration checking), intermediate code generation, optimization, and target code generation (for memory allocation/offset calculation), as well as by debuggers.
Option D is true: Identifiers are recognized and initially entered into the symbol table during the lexical analysis phase.
Hence, statement C is FALSE.
Try the question first, then check your work.
Examiner trap
Consider all compiler phases after parsing, such as semantic analysis, intermediate code generation, and target code generation. Do they need information about identifiers, types, and memory offsets?
This Lexical Analysis previous year question is Q12 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Lexical Analysis 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 Lexical Analysis 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.
Lexical Analysis has 7 GATE CSE PYQs across 6 papers from 2011 to 2026. 5 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2025 Set 1.
How GATE tests Lexical AnalysisIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.