The three alternatives have pairwise disjoint FIRST sets {a},{b},{c}; there are no ε-productions. One lookahead token uniquely selects the production, so the grammar is LL(1). Every LL(1) grammar is LR(1), hence C.
More Parsing and Syntax Analysis questions
GATE 2015 CS (CS3) Q15– Among SLR, canonical LR and LALR, select the method easiest to implement followed by the…
GATE 2015 CS (CS3) Q65– Grammar G has S→F H, F→p c, H→d c. S1: LL(1) can parse every string using grammar G. S2:…
GATE 2021 CS (CS2) Q61– The augmented grammar is S′→S; S→S#cS SS S@ <S> a b c, with #,@,<,>,a,b,c terminals. Let…