The GATE Grind

GATE 2025 CS (CS1) – Question 12

Compiler Design · Lexical Analysis · 1 mark · Multiple choice

Which ONE of the following statements is FALSE regarding the symbol table?

  1. Symbol table is responsible for keeping track of the scope of variables.
  2. Symbol table can be implemented using a binary search tree.
  3. Symbol table is not required after the parsing phase.
  4. Symbol table is created during the lexical analysis phase.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) Symbol table is not required after the parsing phase.

Explanation

The symbol table is used in later phases too, such as semantic analysis, code generation and optimization. So the claim that it is not required after parsing is false.