Menu

Push Down Automata Questions

MCQ
11.
Which one of the following statements is FALSE?
forum Discussion
MCQ
12.
If we use internal data forwarding to speed up the performance of a CPU (R1, R2 and R3 are registers and M[100] is a memory reference), then the sequence of operations

forum Discussion
MCQ
13.
Consider the following context-free grammars:

Which one of the following pairs of languages is generated by G1 and G2, respectively

forum Discussion
MCQ
14.
Consider the pushdown automaton (PDA) below which runs over the input alphabet (a, b, c). It has the stack alphabet {Z0, X} where Z0 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) 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 Z0 and X (in that order) on the stack.
(s, a, Z0) ? (s, XXZ0)
(s, ?, Z0) ? (f, ?)
(s, a, X) ? (s, XXX)
(s, b, X) ? (t, ?)
(t, b, X) ? (t,.?)
(t, c, X) ? (u, ?)
(u, c, X) ? (u, ?)
(u, ?, Z0) ? (f, ?)
The language accepted by the PDA is
forum Discussion
MCQ
15.
Consider the following languages.

L1 = {ai bj ck | i = j, k ? 1}
L1 = {ai bj | j = 2i, i ? 0}
Which of the following is true?
forum Discussion
MCQ
16.
Let L be the set of all languages accepted by a PDA by final state and L the set of all languages accepted by empty stack. Which of the following is true?

forum Discussion
MCQ
17.
If L1 is a context free language and L2 as a regular language, which of the following is/are False? a.  L1-L2 is not context free b.  L1 ? L2 is context free c.  ~L1 is context free d.  ~L2 is regular
forum Discussion
MCQ
18.
Regarding the power of recognition of languages, which of the following statement is false?
forum Discussion
MCQ
19.
Which of the following languages over {a,b,c} is accepted by a deterministic pushdown automata?\a. {wcwR ? w? {a,b}* } b. {wwR ? w? {a,b,c}* }c. {anbncn ? n ? 0 } d. {w ? w is a palindrome over {a,b,c} } Note: wR  is the string obtained by reversing 'w'
forum Discussion
MCQ
20.
If L1 and L2 are context free languages and R a regular set, one of the languages below is not necessarily a context free language, which one?
forum Discussion