Flat Bits
Flat Bits
8. In characteristic equation R = Q + RP, if P is free from epsilon, then it has a solution given by
a) R=P*Q b) R=QP* c) R=Q* d) It has an infinite solution
9. Consider the following language, L= {w∣w∈ {0,1}* and w is palindrome}. Which of the
following grammar generates the above language?
A)S→0S0S|1S1S|ϵ B) S→0S0|1S1|ϵ C) S→0S0|1S1|0|1|ϵ D) S→0S0|1S1|0|1
11. The state that is not reachable from the initial state of the DFA, for any input string
A) Dead state B) Unreachable state C) Final state D) Trap state
12. Let L = {w | w has even length and odd number of 0’s}. Which of the following word is in L ∗?
A)0000 B)011 C)010 D)111101
13. What is the language corresponding to the following regular expression? (0+1) ∗(10)(0+1)∗
A) {w∣w contains 10 as substring} B) {w∣w∈ {0,1}∗} C) {w∣ length of w is ≥1} D) None
17. Let L1 and L2 be languages such that there exist a DFA for accepting L1 ∪ L2. Which of the
following statements is necessarily true?
A)There exists a DFA which accepts (L1 ∪ L2)∗
B) There exists a DFA which accepts L1
C)There exists a DFA which accepts L1 ∩ L2
D)There exists a DFA which accepts L2
20.Let L be a language accepted by a DFA with q states. Which of the following statements is
necessarily true?
A) Every NFA which accepts L requires at least 2q states
B)The number of strings in L is q − 1
C)There exists a NFA with q or less states which accepts L
D)The number of strings in L is q + 1
37. Let Σ = {a, b, c, d}. How many strings are there in Σ4 44=256.
38. All the intermediate steps in deriving a string is called sentential forms.