MCQ · 1 mark · Context Free Languages

GATE CS 2025 CS-1 — Q19

Consider the following context-free grammar GG, where S,AS, A, and BB are the variables (non-terminals), aa and bb are the terminal symbols, SS is the start variable, and the rules of GG are described as:
S→aaB∣AbbS \rightarrow aaB \mid Abb
A→a∣aAA \rightarrow a \mid aA
B→b∣bBB \rightarrow b \mid bB
Which ONE of the languages L(G)L(G) is accepted by GG?
Select one option