Question:

Which phase of the compiler checks the grammar of the program?

Show Hint

Syntax analysis uses grammar rules to build parse trees and check program structure.
Updated On: June 02, 2025
  • Code optimization
  • Semantic analysis
  • Code generation
  • Syntax analysis
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

The syntax analysis (parsing) phase checks for grammatical structure using parse trees or syntax trees. It verifies syntactical correctness of the source code.
Was this answer helpful?
0
0

TS PGECET Notification