GATEverse
← GATE CSE 2025 Set 1

Q9

MCQ1 mark, −0.33

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∣AbbA→a∣aAB→b∣bB\begin{array}{l} S \rightarrow a a B \mid A b b \\ A \rightarrow a \mid a A \\ B \rightarrow b \mid b B \end{array}

Which ONE of the languages L(G)L(G) is accepted by GG ?

Sign in to save attempts.

Loading…