Compiler Design
Lexical Analysis & Parsing
GATE 2010
Easy
Which data structure in a compiler is used for managing information about variables and their attributes?
- AAbstract syntax tree
- Symbol table
- CSemantic stack
- DParse table
Explanation
The symbol table is the compiler's dedicated data structure for tracking every identifier's attributes (type, scope, size, memory location, etc.) throughout compilation.
Source: GATE CS 2010 (2010)
This question is part of a 15-day revision cycle — sign in and Project Forge will bring it back the day before you'd forget it.