COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is a data structure used by the compiler to keep track of semantics of the variables.
A
Symbol table
B
Operator table
C
Literal table
D
Operand table
Explanation: 

Detailed explanation-1: -Symbol table is an important data structure created and maintained by compilers in order to store information about the occurrence of various entities such as variable names, function names, objects, classes, interfaces, etc. Symbol table is used by both the analysis and the synthesis parts of a compiler.

Detailed explanation-2: -There are three data structures used to implement symbol table: 1. Linear list 2. Binary tree 3. Hash table 1.

Detailed explanation-3: -Symbol table is an important data structure used in a compiler. Symbol table is used to store the information about the occurrence of various entities such as objects, classes, variable name, interface, function name etc. it is used by both the analysis and synthesis phases.

Detailed explanation-4: -Which data structure is used in a compiler for managing information about variables and their attributes? Answer: B) Explanation: Symbol table is a data structure used for managing information about variables and their attributes.

There is 1 question to complete.