GATEverse Practice, past papers & mock tests
GATE 2025 · CS1 - Forenoon
Theory of ComputationPush Down Automata: CFL & DCFLmediumMCQ1 mark

Consider the following context-free grammar G, where S, A, and B are the variables (non-terminals), a and b are the terminal symbols, S is the start variable, and the rules of G are described as:

GRAMMAR RULES
SaaB | Abb
Aa | aA
Bb | bB

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

Save your progress

Related Theory of Computation PYQs