Discussion
Which ONE of the following statements is FALSE regarding the symbol table?
Answer: C
The false statement is Symbol table is not required after the parsing phase.
The symbol table is used throughout compilation. Semantic analysis reads it for type checking and scope resolution, intermediate code generation and optimisation use the attributes it stores, and the code generator needs the storage locations and sizes recorded in it. So it is very much required after parsing.
The other statements are true. The symbol table records which declaration a name refers to in each scope. It can be implemented with a hash table, a list or a binary search tree. And entries are typically created as identifiers are first met in lexical analysis, with attributes filled in by later phases.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development