GATE CS 2025, set 2 · Question 40 · Compiler Design · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Given a Context-Free Grammar G as follows:
S → Aa | bAc | dc | bdaA → d
Which ONE of the following statements is TRUE?

  1. (A) G is neither LALR(1) nor SLR(1)
  2. (B) G is CLR(1), not LALR(1)
  3. (C) G is LALR(1), not SLR(1)
  4. (D) G is LALR(1), also SLR(1)
Answer

Answer (C)

Answer from the official GATE CS 2025 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes