Q: Which phase of the compiler is responsible for analyzing the structure of the source code and generating an intermediate representation?
-
A
Lexical Analysis
-
B
Semantic Analysis
-
C
Syntax Analysis
-
D
Intermediate Code Generation
C
Answer:
C
Explanation:
Syntax analysis, also known as parsing, is the phase where the compiler analyzes the structure of the source code and generates an intermediate representation.
Related Topic:
Share Above MCQ