Which of the following is NOT a phase of syntax analysis?
Practice Questions
Q1
Which of the following is NOT a phase of syntax analysis?
Parsing
Lexical analysis
Semantic analysis
Intermediate code generation
Questions & Step-by-Step Solutions
Which of the following is NOT a phase of syntax analysis?
Step 1: Understand what syntax analysis is. It is the process of checking the structure of code to ensure it follows the rules of the programming language.
Step 2: Identify the phases of syntax analysis. Common phases include lexical analysis, parsing, and semantic analysis.
Step 3: Recognize that intermediate code generation is a separate process that happens after syntax analysis.
Step 4: Conclude that since intermediate code generation is not part of syntax analysis, it is the correct answer to the question.