GATE CSE 2026 Session 1 Q28: True statements about LL(1) parsing
- Compiler Design
- 1 mark
- MSQ
- No negative marking
Question
Which of the following statements is/are true?
Try it: multiple select: one or more correct options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation
Answer: C (official GATE 2026 final answer key)
Concept used: LL(1) is predictive (no backtracking) and needs a grammar without left recursion and common prefixes.
First step: A common prefix gives two productions the same FIRST set, which is an LL(1) conflict.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2026 Session 1 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Compiler Design PYQs
- 2026 Session 1 · Q27Classify errors in three C string declarations
- 2026 Session 1 · Q42Redundant (common) subexpressions in blocks B4 and B5 of a CFG
- 2026 Session 1 · Q53Compare two SDDs for type declarations
- 2026 Session 2 · Q35Count tokens produced by a lexer for a given string
- 2026 Session 2 · Q41Shift-reduce conflicts in the LR(0) table of a grammar
- 2026 Session 2 · Q45Live variables at the exit of each block in a loop CFG