Question
Which ONE of the following statements is FALSE regarding the symbol table?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2025 answer key
Solution
Review how the symbol table is created, organized, and accessed across lexical, syntax, semantic, and code-generation phases of a compiler.
- (A) True: The symbol table tracks identifier attributes including variable scope.
- (B) True: A symbol table can be implemented using hash tables, binary search trees, or linear lists.
- (C) FALSE: The symbol table is heavily used after parsing during semantic analysis (type checking), intermediate code generation, and target code generation (storage offsets and address resolution).
- (D) True: Initial entries for identifiers are created in the symbol table during lexical analysis.
Final answer
Option (C)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 12 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.