Which one of the following statements is TRUE?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2022 · Q13
Time
Select one answerSingle correct
Solution
Official answer: D) LR(1) parsing is sufficient for deterministic context-free languages.
ParsingLet us analyze each statement:
(A) is FALSE: Merging states with identical sets of items (cores) when constructing an parser from an parser never creates shift-reduce conflicts, but it can introduce reduce-reduce conflicts.
(B) is FALSE: The symbol table is created/populated during lexical analysis and accessed/modified throughout multiple subsequent phases of the compiler (syntax analysis, semantic analysis, intermediate code generation, optimization, and code generation).
(C) is FALSE: Data flow analysis is a static technique used during compile-time for code optimization (e.g., liveness analysis, reaching definitions, constant propagation), not for run-time memory management.
(D) is TRUE: The class of languages accepted by deterministic pushdown automata (DPDAs) is precisely the class of Deterministic Context-Free Languages (DCFLs). Every DCFL can be generated by an grammar, meaning parsing is sufficient for all DCFLs.
Thus, option (D) is the only TRUE statement.
Try the question first, then check your work.
Examiner trap
Recall that DCFLs are characterized by deterministic pushdown automata, which are equivalent in power to parsers.
This Parsing previous year question is Q13 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Parsing in Compiler Design, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Parsing PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Parsing has 23 GATE CSE PYQs across 16 papers from 2012 to 2026. 5 of them are 1-mark MCQs like this one, and GATE CSE 2022 has 2.
How GATE tests ParsingIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.