Compiler Design · Lexical Analysis, Parsing and SDT
Official IIT answer key · IIT Bombay · Audited Aug 2026
GATE CSE 2021 Set 2 Q3 · MCQ · 1 mark
int main() {
Integer x;
return 0;
}
Which one of the following phases in a seven-phase C compiler will throw an error?Key concept
No account needed
Sit 5 related Lexical Analysis, Parsing and SDTPYQs as a guest. We'll score the set and show which traps cost marks — sign in only if you want to save the run.
Topic notes
In GATE CS, this foundational topic tests grammar analysis, parsing techniques, and compiler phase interactions through both theoretical properties and computational mechanics. Questions frequently evaluate FIRST/FOLLOW set computation, LL(1) parsing table construction, LR parser capabilities, and bottom-up reduction steps. In addition, conceptual items regularly test front-end compiler phase responsibilities, phase inputs/outputs, and error detection stages.
Full Lexical Analysis, Parsing and SDT guide →Consider the following ANSI C program: int main() Integer x; return 0; Which one of the following phases in a seven-phase C compiler will throw an error?
Topic-wise GATE CS PYQs with verified steps
Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.
