Push-down Automata: GATE CS Previous Year Questions

Push-down Automata · Theory of Computation

10 questions · asked in 9 of 27 years (2000–2026)

MCQ 9 · NAT 11-mark 6 · 2-mark 4

2000Questions per year2026

Questions 1–5 of 10

Q1GATE 2025 (Session 2)1 markMCQ−0.33 if wrong
Which ONE of the following languages is accepted by a deterministic pushdown automaton?

Q2GATE 20232 marksMCQ−0.67 if wrong
Consider the pushdown automaton (PDA) PP below, which runs on the input alphabet {a,b}\{a,b\}, has stack alphabet {⊥,A}\{ \perp ,A\}, and has three states {s,p,q}\{s,p,q\}, with ss being the start state. A transition from state uu to state vv , labelled c/X/γc/X/\gamma , where cc is an input symbol or ϵ\epsilon, XX is a stack symbol, and γ\gamma is a string of stack symbols, represents the fact that in state uu, the PDA can read cc from the input, with XX on the top of its stack, pop XX from the stack, push in the string γ\gamma on the stack, and go to state vv. In the initial configuration, the stack has only the symbol ⊥\perp in it. The PDA accepts by empty stack.
s p q a//A a/A/AA b/A/ε b/A/ε ε/A/ε ε/A/ε ε/A/ε ε//ε
Which one of the following options correctly describes the language accepted by PP?

Q3GATE 2021 (Session 1)2 marksNAT
In a pushdown automaton P=(Q,Σ,Γ,δ,q0,F)P=(Q, \Sigma, \Gamma, \delta, q_0, F), a transition of the form,
p q a, X → Y
where p,q∈Q,  a∈Σ∪{ϵ},  X,Y∈Γ∪{ϵ}p,q \in Q,\; a \in \Sigma \cup \{ \epsilon \} ,\;X,Y \in \Gamma \cup \{ \epsilon \}, represents

(q,Y)∈δ(p,a,X)(q,Y) \in \delta(p,a,X)

Consider the following pushdown automaton over the input alphabet Σ={a,b}\Sigma = \{a,b\} and stack alphabet Γ={#,A}\Gamma = \{ \#, A\}.
start q0 q1 q2 q3 a, ε → A b, A → ε ε, ε → # ε, ε → ε ε, A → A
The number of strings of length 100 accepted by the above pushdown automaton is ___________

Q4GATE 2016 (Session 1)2 marksMCQ−0.67 if wrong
Consider the transition diagram of a PDA given below with input alphabet Σ\Sigma={a,b} and stack alphabet Γ\Gamma={X,Z}. Z is the initial stack symbol. Let L denote the language accepted by the PDA.
a,X/XX a,Z/XZ b,X/ε b,X/ε ε,Z/Z
Which one of the following is TRUE?

Q5GATE 2015 (Session 1)2 marksMCQ−0.67 if wrong
Consider the NPDA ⟨Q={q0,q1,q2},\langle Q=\{q_{0},q_{1},q_{2}\}, Σ={0,1},\Sigma =\{0,1\}, Γ={0,1,⊥},δ,q0,⊥,\Gamma =\{0,1,\perp \},\delta ,q_{0},\perp , F={q2}⟩F=\{q_{2}\} \rangle, where (as per usual convention) Q is the set of states, Σ\Sigma is the input alphabet, Γ\Gamma is the stack alphabet, δ\delta is the state transition function, q0q_{0} is the initial state, ⊥\perp is the initial stack symbol, and FF is the set of accepting states. The state transition is as follows:
q0 q2 q3 1, Z → 1Z 0, Z → 0Z 0, 1Z → Z 1, 0Z → Z 0/1/ε, Z → Z ε, → ε
Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton?

Keep practising

Topics in Theory of Computation

All CS topics ›