Menu

Regular and context free languages Questions

MCQ
41.
Let G = (V, T, S, P) be a context-free grammar such that every one of its productions is of the form A ? v, with |v| = K > 1. The derivation tree for any W ? L(G) has a height h such that
forum Discussion
MCQ
42.
Given the following two languages : L1 = {an bn | n ? 0, n ? 100} L2 = {w ? {a, b, c}*| na(w) = nb(w) = nc(w)} Which of the following options is correct ?
forum Discussion
MCQ
43.
Given the following two statements : A. L = {w|na(w) = nb(w)} is deterministic context free language, but not linear. B. L = {an bn} ? {an b2n} is linear, but not deterministic context free language. Which of the following options is correct ?
forum Discussion
MCQ
44.
What is the number of steps required to derive the string ((() ()) ())

S ? SS
S ? (S)
S ? ?
forum Discussion
MCQ
45.
Consider the following grammar.
S -> AB
A -> a
A -> BaB
B -> bbA
Which of the following statements is FALSE?
forum Discussion
MCQ
46.
Let L = {0n1n|n ? 0} be a context free language. Which of the following is correct ?
forum Discussion
MCQ
47.
Given a Turing Machine M = ({q0, q1, q2, q3}, {a, b}, {a, b, B}, ?, B, {q3}) Where ? is a transition function defined as ?(q0, a) = (q1, a, R) ?(q1, b) = (q2, b, R) ?(q2, a) = (q2, a, R) ?(q3, b) = (q3, b, R) The language L(M) accepted by the Turing Machine is given as:
forum Discussion
MCQ
48.
Match the following:

forum Discussion
MCQ
49.
The language of all non-null strings of a
forum Discussion
MCQ
50.
If all the production rules have single non - terminal symbol on the left side, the grammar defined is:
forum Discussion