GATE CS 2025 Set 2 | Question 24

Theory of Computation › Context Free Grammar · MCQ · 1 mark · Answer: A

  1. Question 24Theory of Computationmcq1 mark
    Which ONE of the following languages is accepted by a deterministic pushdown automaton?
    • A.
      Any regular language.
      ✓
    • B.
      Any context-free language.
    • C.
      Any language accepted by a non-deterministic pushdown automaton.
    • D.
      Any decidable language.

    Answer: A

    Solution

    Answer: (A) Any regular language. Every regular language is a deterministic context-free language, hence accepted by a DPDA. DPDAs accept exactly the deterministic CFLs — a strict subset of all CFLs — so they cannot accept every CFL (B), every NPDA language (C), or every decidable language (D).

More GATE PYQ on Context Free Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2025 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →