Theory of Computation · Context-Free Grammars and PDAs
Official IIT answer key · IISc Bangalore · Audited Aug 2026
GATE CSE 2016 Set 1 Q42 · MCQ · 2 marks
Key concept
No account needed
Sit 5 related Context-Free Grammars and PDAsPYQs as a guest. We'll score the set and show which traps cost marks — sign in only if you want to save the run.
Topic notes
Context-Free Grammars (CFG) and Pushdown Automata (PDA) form a cornerstone of the GATE CS Theory of Computation syllabus. Questions systematically test the boundary between Regular, DCFL, CFL, and non-CFL classes, structural invariants of grammars (ambiguity, terminal count ratios, derivation steps), and operational tracing of PDAs. Over recent years, the topic has expanded from standard single-choice language classifications to multi-select invariant verification and exact counting NAT questions.
Full Context-Free Grammars and PDAs guide →Consider the following context-free grammars: G1: S aS | B, B b | bB G2: S aA | bB, A aA | B | , B bB | Which one of the following pairs of languages is generated by G1 and G2, respectively?
Topic-wise GATE CS PYQs with verified steps
Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.
