Skip to content

UGC NET CS 2023Theory of Computation and Compilers › Syntax AnalysisVerified

UGC NET CS 2023 PYQ: Which phase of compiler checks the grammar of programming?

Which phase of compiler checks the grammar of programming?

  1. A
    Code optimization
  2. B
    Semantic analysis
  3. C
    Code generators
  4. D
    Syntax analysis
    Correct answer

Answer

(D) Syntax analysis

Approach

Match the compiler phase to its job of checking grammar.

Reviewed by UGC IQ Editorial Team.