GateAI
Lexical Analysis

GATE CSE 2025 Set 1 · Q12

MCQ1 markEasy

Time

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

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

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

Lexical Analysis

A 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.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Lexical Analysis in GATE CSE

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 Analysis

More from GATE CSE 2025 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2025 Set 1 · Q12 · MCQ

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

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.