SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Assembler
|
|
Compiler
|
|
Interpreter
|
|
All of the mentioned
|
Detailed explanation-1: -By whom is the symbol table created? a) Compiler b) Interpreter c) Assembler d) None of the mentioned Answer: a Explanation: Symbol table is created by the compiler which contains the list of lexemes or tokens. 1.
Detailed explanation-2: -In computer science, a symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier (or symbol), constant, procedure and function in a program’s source code is associated with information relating to its declaration or appearance in the source.
Detailed explanation-3: -6. Who is responsible for the creation of the symbol table? Explanation: The compiler generates a symbol table, which contains a list of lexemes or tokens.
Detailed explanation-4: -The symbol table is created during syntax analysis and linear analyses and is utilized by the compiler to achieve increased efficiency during compile time.