MCQ Answer

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

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

Topic : Computer Science and IT

A. Abstract syntax tree

B. Symbol table

C. Semantic stack

D. Parse table




Correct Answer is :

B. Symbol table



Explanation
Symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier in a program’s source code is associated with information relating to its declaration or appearance in the source, such as its type, scope level and sometimes its location.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad