...
NTA UGC NET Dec 2024 Paper-2
April 6, 2025
GATE 2010
April 6, 2025
NTA UGC NET Dec 2024 Paper-2
April 6, 2025
GATE 2010
April 6, 2025

GATE 2010

Question 13

Which data structure in a compiler is used for managing information about variables and their attributes?

A
Abstract syntax tree
B
Symbol table
C
Semantic stack
D
Parse Table
Question 13 Explanation: 
Symbol tables are data structures that are used by compilers to hold information about source-program constructs. The information is collected incrementally by the analysis phases of a compiler and used by the synthesis phases to generate the target code. Entries in the symbol table contain information about an identifier such as its character string (or lexeme) , its type, its position in storage, and any other relevant information.
Correct Answer: B
Question 13 Explanation: 
Symbol tables are data structures that are used by compilers to hold information about source-program constructs. The information is collected incrementally by the analysis phases of a compiler and used by the synthesis phases to generate the target code. Entries in the symbol table contain information about an identifier such as its character string (or lexeme) , its type, its position in storage, and any other relevant information.

Leave a Reply

Your email address will not be published. Required fields are marked *