GATEverse Practice, past papers & mock tests
GATE 2026 · CS1 - Forenoon
Theory of ComputationPush Down Automata: CFL & DCFLhardMSQ2 marks
Consider the following context-free grammar G. S → abaABAbba A → aaBBAb | bBabaa B → aBb | ab In the above grammar, S is the start symbol, a and b are terminal symbols, and A and B are non-terminal symbols. Let L(G) be the language generated by the grammar G. For a string s in L(G), let n1(s) be the number of a's in s and n2(s) be the number of b's in s. Which of the following statements is/are true?

Select every correct option.

Save your progress

Related Theory of Computation PYQs