Question 168Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

Which of the following phase of the compiler, gathers type information and saves it in

Which of the following phase of the compiler, gathers type information and saves it in either the syntax tree or the symbol table, for subsequent use during intermediate code generation?
  1. ASemantic Analyzer
  2. BCode Analyzer
  3. CSyntax Analyzer
  4. DLexical Analyzer
Show answerHide answer

Correct answer: (A) Semantic Analyzer

Explanation

The semantic analyzer checks meaning and gathers type information, storing it in the syntax tree or symbol table for intermediate code generation.

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 168 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.