Consider the following Grammar G:

S ➝ A | B

A➝ a | c

B➝ b | c

Where {S, A, B} is the set of non-terminals, {a, b, c} is the set of terminals.

Which of the following statement(s) is/are correct?

S​ 1​ : LR(1) can parse all strings that are generated using grammar G.

S​ 2​ : LL(1) can parse all strings that are generated using grammar G.

1
Both S​ 1​ and S​ 2
2
Only S​ 2
3
Neither S​1​ nor S​ 2
4
Only S​ 1

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation