StreakPeaked· Practice

ExamsGATETechnical

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.

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

Solution

The symbol table is essential during the semantic analysis and code generation phases, as it maintains information about variable types and scopes, making it necessary beyond just parsing.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →