Consider a grammar G with the following production rules:

S → SS, S → λ, S → aSb, S → bSa

Which one of the following languages is generated using the above rules?

1
L = { anbn:n ≥ 1}
2
L = {w: number of a is > number of b}
3
L = { anbn:n ≥ 0}
4
L = {w: number of a and b are equal}
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation