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 6–10 of 10

Q6GATE 20061 markMCQ−0.33 if wrong
Consider the pushdown automaton (PDA) below which runs over the input alphabet (a, b, c). It has the stack alphabet {Z0,X}\{Z_0, X\} where Z0Z_0 is the bottom-of-stack marker. The set of states of the PDA is (s, t, u, f} where s is the start state and f is the final state. The PDA accepts by final state. The transitions of the PDA given below are depicted in a standard manner. For example, the transition (s,b,X)→(t,XZ0)(s, b, X) \rightarrow (t, XZ_0) means that if the PDA is in state s and the symbol on the top of the stack is X, then it can read b from the input and move to state t after popping the top of stack and pushing the symbols Z0Z_0 and X (in that order) on the stack.
(s,a,Z0)→(s,XXZ0)(s, a, Z_0) \rightarrow (s, XXZ_0)
(s,ϵ,Z0)→(f,ϵ)(s, \epsilon, Z_0) \rightarrow (f, \epsilon)
(s,a,X)→(s,XXX)(s, a, X) \rightarrow (s, XXX)
(s,b,X)→(t,ϵ)(s, b, X) \rightarrow (t, \epsilon)
(t,b,X)→(t,ϵ)(t, b, X) \rightarrow (t,\epsilon)
(t,c,X)→(u,ϵ)(t, c, X) \rightarrow (u, \epsilon)
(u,c,X)→(u,ϵ)(u, c, X) \rightarrow (u, \epsilon)
(u,ϵ,Z0)→(f,ϵ)(u, \epsilon, Z_0) \rightarrow (f, \epsilon)
The language accepted by the PDA is

Q7GATE 20061 markMCQ−0.33 if wrong
Which of the following languages is accepted by a non-deterministic pushdown automaton (PDA) but NOT by a deterministic PDA?

Q8GATE 20051 markMCQ−0.33 if wrong
Let P be a non-deterministic push-down automaton (NPDA) with exactly one state, q, and exactly one symbol, Z, in its stack alphabet. State q is both the starting as well as the accepting state of the PDA. The stack is initialized with one Z before the start of the operation of the PDA. Let the input alphabet of the PDA be Σ\Sigma. Let L(P) be the language accepted by the PDA by reading a string and reaching its accepting state. Let N(P) be the language accepted by the PDA by reading a string and emptying its stack. Which of the following statements is TRUE?

Q9GATE 20041 markMCQ−0.33 if wrong
Let M=(K,Σ,Γ,Δ,s,F)M=(K, \Sigma, \Gamma, \Delta, s, F) be a pushdown automaton, where
K={s,f},F={f},Σ={a,b},Γ={a} and K=\{s, f\}, F=\{f\}, \Sigma=\{a, b\}, \Gamma=\{a\} \text { and }
Δ={((s,a,ϵ),(s,a)),((s,b,ϵ),(s,a)),((s,a,a),(f,ϵ)),((f,a,a),(f,ϵ)),((f,b,a),(f,ϵ))}\Delta=\{((s, a, \epsilon),(s, a)),((s, b, \epsilon),(s, a)),((s, a, a),(f, \epsilon)),((f, a, a),(f, \epsilon)),((f, b, a),(f, \epsilon))\}
Which one of the following strings is not a member of L(M)?

Q10GATE 20021 markMCQ−0.33 if wrong
The language accepted by a Pushdown Automaton in which the stack is limited to 10 items is best described as

Keep practising

Topics in Theory of Computation

All CS topics ›