Toc-Unit-5 Push Down Automata
Toc-Unit-5 Push Down Automata
5. Which of the following are the actions that operates on stack top?
(A) Pushing
(B) Updating
(C) Popping
6. With reference of a DPDA, which among the following do we perform from the
start state with an empty stack?
a) process the whole string
b) end in final state
c) end with an empty stack
d) all of the mentioned
Answer: d
Explanation: The empty stack in the end is our requirement relative to finite state
automatons.
9. If the PDA does not stop on an accepting state and the stack is not empty,
the string is: a) rejected
b) goes into loop forever
c) both (a) and (b)
d) none of the mentioned
Answer: a
Explanation: To accept a string, PDA needs to halt at an accepting state and with a stack
empty, else it is called rejected. Given a PDA M, we can construct a PDA M’ that accepts
the same language as M, by both acceptance criteria.
16. A push down automata is said to be _________ if it has atmost one transition
around all configurations.
a) Finite
b) Non regular
c) Non-deterministic
d) Deterministic
Answer: d
Explanation: DPDA or Deterministic Push down automata has atmost one transition
applicable to each configuration.
17. A pushdown automata can be defined as: (Q, ∑, G, q0, z0, A, d) What does the
symbol z0 represents?
a) an element of G
b) initial stack symbol
c) top stack alphabet
d) all of the mentioned
Answer: d
Explanation: z0 is the initial stack symbol, is an element of G. Other symbols like d
represents the transition function of the machine.
18. Which among the following is true for the given statement?
Statement :If there are strings R and T in a language L so that R is prefix of T and
R is not equivalent to T.
a) No DPDA can accept L by empty stack
b) DPDA can accept L by an empty stack
c) L is regular
d) None of the mentioned
Answer: a
Explanation: If M is a DPDA accepting L by an empty stsck, R and T are distinct strings in
L, and R is a prefix of T, then the sequence of moves M must make in order to accept R
leaves the stack empty, since R L. But then T cannot be accepted, since M cant move
with an empty stack. ∈
19. Which of the following can be accepted by a DPDA?
a) The set of even length palindrome over {a,b}
b) The set of odd length palindrome over {a,b}
c
c) {xx | where c stands for the complement,{0,1}}
d) None of the mentioned
Answer: d
Explanation: Theorem: The language pal of palindromes over the alphabet {0,1} cannot be
accepted by any finite automaton , and it is therefore not regular.
b) context free
c) both (a) and (b)
d) none of the mentioned
Answer: c
Explanation: All the regular languages are the subset to context free languages and
thus can be accepted using push down automata.
30. The push down automata accepts the input string in form of
(A) Finial state
B) Empty stack
C) Both (a) and (b)
(D) None of these
Answer: C
Explanation: PDA canaccept by two way:1)acceptance of pda by dinal state & 2)
acceptance of pda by empty stack
a. {0^n1^n|n>=0}
b. {0^n1^2n|n>=0}
c. {0^2n1^n|n>=0}
d. None of the mentioned
Answer: a
n n
a) {0 1 |n>=0}
n 2n
b) {0 1 |n>=0}
2n n
c) {0 1 |n>=0}
d) None of the mentioned
Answer: a
38. Which of the following correctly resembles the given state diagram?
r
a) {ww |w=(a+b)*}
b) ε is called the initial stack symbol
c) Both (a) and (b)
d) None of the mentioned
Answer: a
Explanation: Initially we put a special symbol ‘#’ into the empty stack. At state q1, the w is
being read. In state q2, each 0 or 1 is popped when it matches the input. If any other input
is given, the PDA will go to a dead state. When we reach that special symbol ‘#’, we go to
the accepting state q3.
42. Which of the following correctly recognize the symbol ‘|-‘ in context
to PDA? a) Moves
b) transition function
c) or/not symbol
d) none of the mentioned
Answer: a
Explanation: Using this notation, we can define moves and further acceptance of a
string by the machine.
43. Which among the following is true for the given statement?
Statement :If there are strings R and T in a language L so that R is prefix of T and
R is not equivalent to T.
a) No DPDA can accept L by empty stack
b) DPDA can accept L by an empty stack
c) L is regular
d) None of the mentioned
Answer: a
Explanation: If M is a DPDA accepting L by an empty stsck, R and T are distinct strings in
L, and R is a prefix of T, then the sequence of moves M must make in order to accept R
leaves the stack empty, since R L. But then T cannot be accepted, since M cant move
with an empty stack. ∈
c
c) {xx | where c stands for the complement,{0,1}}
d) None of the mentioned
Answer: d
Explanation: Theorem: The language pal of palindromes over the alphabet {0,1} cannot be
accepted by any finite automaton , and it is therefore not regular.
45. Which of the following allows stacked values to be sub-stacks rather than
just finite symbols?
a) Push Down Automaton
b) Turing Machine
c) Nested Stack Automaton
d) None of the mentioned
Answer: c
Explanation: In computational theory, a nested stack automaton is a finite automaton
which makes use of stack containing data which can be additional stacks.
46. A non deterministic two way, nested stack automaton has n-tuple definition.
State the value of n.
a) 5
b) 8
c) 4
d) 10
Answer: d
Explanation: The 10-tuple can be stated as: NSA= ‹Q,Σ,Γ,δ,q0,Z0,F,[,],]›.
49. Consider the transition diagram of a PDA given below with input alphabet Σ =
{a,b} and stack alphabet Γ ={X,Z}
.Z is the initial stack symbol. Let L denote the language accepted by
the PDA.