GATE CSE · Computer Science and Information Technology
Lexical analysis, parsing, syntax-directed translation; runtime environments; intermediate code generation; local optimisations and data flow analyses.
Test yourself on Compiler Design
5 real GATE CSE questions with instant answers — no signup, ~3 minutes.
Study notes are still being prepared.
Don't wait — Shishya can teach you this topic right now, on demand.
Ask Shishya to teach this →Shishya is your personal tutor for this topic. Pick a starter or open a free chat.
Q1 · Compiler Design · HARD
Consider a grammar G with production S → aSb | ab. For which of the following parsing techniques is this grammar suitable?
Q2 · Compiler Design · MEDIUM
Consider a grammar G with productions: S → aBc | dE, B → bB | ε, E → eE | f. How many entries in the FIRST set of non-terminal S contain terminal symbols?
Q3 · Compiler Design · EASY
In a compiler, which phase is responsible for detecting that the statement 'int x = 5.7;' has a type mismatch error?
Q4 · Compiler Design · MEDIUM
Consider the three-address code: t1 = a + b, t2 = c * d, t3 = t1 - t2, t4 = t3 / e. Assuming all variables are live at the end, what is the minimum number of registers required to generate code without spilling to memory?
Q5 · Compiler Design · EASY
In a compiler, which phase is responsible for eliminating common sub-expressions from the intermediate code?