Self Studies

Theory of Compu...

TIME LEFT -
  • Question 1
    2 / -0.33

    Consider the languages L1 = Φ and L2 ={a}. Which one of the following represents \({L_1}L_2^* \cup L_1^*\)?

  • Question 2
    2 / -0.33

    For x ϵ (0 + 1)* Let L = { x ϵ (0 + 1)* | dec(s) mod 7 = 1 and dec(s) mod 11 = 3 } where dec(7) = 111 since d(s) denotes the decimal value.

    Which one of the following statements is true?

  • Question 3
    2 / -0.33

    Consider the following grammar:

    S → 0A|0BB

    A → 00A|λ

    B → 1B|11C

    C → B

    Which language does this grammar generate?

  • Question 4
    2 / -0.33

    If any string of a language L can be effectively enumerated by an enumerator in a lexicographic order, then language L is _______

  • Question 5
    2 / -0.33

    If a Context Free Grammar G is in Chomsky Normal Form, to derive a string of length 101 number of productions needed is _____.

  • Question 6
    2 / -0.33

    Consider the following context-free grammar:

    S → AB

    A → aAb/ab

    B → cBd/cd

    Which of the following languages is generated by the given grammar?

  • Question 7
    2 / -0.33

    The number of two states DFA can be constructed with a designated initial state and a designated final state over the alphabet ∑ = {x, y} is _____.

  • Question 8
    2 / -0.33

    The string 1101 does not belong to the set represented by:

  • Question 9
    2 / -0.33

    Consider the following languages:

    \({L_1} = \left\{ {{a^n}{b^n}{c^m}} \right\} \cup \left\{ {{a^n}{b^m}{c^m}} \right\},\;n,\;m \ge 0\)

    \({L_2} = \{ w{w^R}|w \in \left\{ {a,\;b} \right\}*\}\) Where R represents reversible operation.

    Which one of the following is (are) inherently ambiguous language(s)?

  • Question 10
    2 / -0.33

    Which productions should be added in the following context-free grammar to get a set of all palindromes over the input {0,1}?

    P → ε

    P  → 0P0

    P → 1P1

  • Question 11
    2 / -0.33

    Which one of the following languages over Σ = {a, b} is/are context-free?

  • Question 12
    2 / -0.33

    Let the minimum state DFA accepting the language L1 = {x| x ϵ {p, q}* } in which number of p’s and q’s in x are divisible by 10 and 15 be n and the minimum number of state DFA accepting the language L2 = { w | w ϵ {a}* } in which a is divisible by 10 and 15 be y. The value of x – y is _____.

  • Question 13
    2 / -0.33

    Which of the following language is decidable?

  • Question 14
    2 / -0.33

    Which of the following are not context free?

    L1: { an bm ak | k = mn and k, m, n ≥ 1 }

    L2: { am + n bn + m cm | n, m ≥ 1 }

    L3: { an bn cm | m < n and m, n ≥ 1 }

  • Question 15
    2 / -0.33

    Let A be a recursively enumerable language which is not recursive and A’ be its complement, also B be recursive language and B’ be its complement. Let X and Y be two languages such that A’ reduces to X and Y reduces to B’ and the reduction is many to one. Which of the following is/are true?

  • Question 16
    2 / -0.33

    Recursive languages are closed under which of the following operations?

    I. Union

    II. Complement

    III. Concatenation

    IV. Kleene star

  • Question 17
    2 / -0.33

    Let L1, L2 be any two context-free languages and R be any regular language. Then which of the following is/are CORRECT?

  • Question 18
    2 / -0.33

    Consider the language L = {an |n ≥ 0} ∪ {anbn| n ≥ 0} and the following statements.

    Which of the above statements is/are TRUE?

  • Question 19
    2 / -0.33

    Which of the following is decidable for language L?

    I. For a context sensitive language, L = ϕ

    II. For a context free language, L = ∑*

    III. For a deterministic context free language, L is finite

    IV. For a recursive language, w ϵ L where w is a string in L

  • Question 20
    2 / -0.33

    Which of the following is/are not equivalent regular expressions?

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 20

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
Submit Test
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now