GateAI
Context-Free Grammars and PDAs

GATE CSE 2025 Set 2 · Q24

MCQ1 markEasy

Time

Which ONE of the following languages is accepted by a deterministic pushdown automaton?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) Any regular language.

Context-Free Grammars and PDAs

A 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 {wwR∣w∈{a,b}∗}\{ww^R \mid w \in \{a, b\}^*\}) 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., {anbncn∣n≥0}\{a^n b^n c^n \mid n \ge 0\}) which cannot be accepted by any pushdown automaton. Thus, (D) is false.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

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 in GATE CSE

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 PDAs

More from GATE CSE 2025 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2025 Set 2 · Q24 · MCQ

Which ONE of the following languages is accepted by a deterministic pushdown automaton?

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.