Home MCQs CSS Computer Science Question #1131
Back to Questions
CSS Computer Science QUESTION #1131
Question 1
Which phase of compiler is responsible for abstract syntax tree (AST) generation?
  • Syntax analysis✔️
  • Semantic analysis
  • Lexical analysis
  • None of these
Correct Answer Explanation
The Syntax Analysis phase (parsing) takes tokens from lexical analysis and generates a hierarchical structure, typically an AST.