Which ONE of the following languages is accepted by a deterministic pushdown automaton?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 2 · Q24
Time
Select one answerSingle correct
Solution
Official answer: A) Any regular language.
Context-Free Grammars and PDAsA Deterministic Pushdown Automaton (DPDA) accepts the class of Deterministic Context-Free Languages (DCFLs).
Regular languages: Every regular language can be accepted by a Deterministic Finite Automaton (DFA). Since any DFA can be simulated by a DPDA (by simply ignoring the stack), every regular language is deterministic context-free and can be accepted by a DPDA. Hence, (A) is correct.
Context-free languages / NPDAs: DPDAs are strictly less powerful than Non-Deterministic Pushdown Automata (NPDAs). There exist non-deterministic context-free languages (e.g., the language of even-length palindromes ) that cannot be recognized by any DPDA. Thus, (B) and (C) are false.
Decidable languages: The class of decidable languages contains context-sensitive and other non-context-free languages (e.g., ) which cannot be accepted by any pushdown automaton. Thus, (D) is false.
Try the question first, then check your work.
Examiner trap
Recall the language hierarchy: Regular DCFL CFL Decidable. DPDAs accept exactly the class of Deterministic Context-Free Languages (DCFLs).
This Context-Free Grammars and PDAs previous year question is Q24 of the GATE CSE 2025 Set 2 paper. Find more GATE CSE PYQs on Context-Free Grammars and PDAs in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Context-Free Grammars and PDAs PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Context-Free Grammars and PDAs has 26 GATE CSE PYQs across 17 papers from 2011 to 2026. 9 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2025 Set 2.
How GATE tests Context-Free Grammars and PDAsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.