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?
- (A) G is neither LALR(1) nor SLR(1)
- (B) G is CLR(1), not LALR(1)
- (C) G is LALR(1), not SLR(1)
- (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