The GATE Grind

GATE 2026 CS (CS1) – Question 28

Compiler Design · Parsing and Syntax Analysis · 1 mark · Multiple select

Which of the following statements is/are true?

  1. LL(1) parser uses backtracking
  2. For a grammar to be LL(1), it must be left-recursive
  3. For a grammar to be LL(1), it must be left-factored
  4. The LL(1) parsers are more powerful than the SLR parsers

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) For a grammar to be LL(1), it must be left-factored

Explanation

Therefore, option (C) is the only true statement.