1.

What data structure in a complier is used for managing information about variables and their attributes?(a) Abstract syntax tree(b) Symbol table(c) Semantic stack(d) Parse tableThis question was addressed to me during an interview.Question is taken from Intermediate Code-Generation in section Syntax Directed Definition and Translations of Compiler

Answer»

Correct choice is (b) SYMBOL table

For explanation I would say: Symbol table is used for STORING the information about VARIABLES and their ATTRIBUTES by compiler.



Discussion

No Comment Found

Related InterviewSolutions