Practice Questions Set 6
Practice Questions Set 6
2. Number of states in minimal DFA to accept the language (a + aaa)* over Ʃ = {a, b} ?
(a) 1 (b) 2
(c) 3 (d) None
3. Consider 2 statements:
4. Consider this:
5. r1 = (01 + 1)* (ԑ + 0)
r2 = (0 + ԑ) (10 + 1)*
1
(c) r1 represents strings with no consecutive 11 and
r2 represents strings with no consecutive 00.
(a) 2 (b) 3
(c) 4 (d) 5
L is ?
10. Which of the following is true for i/p alphabet Ʃ and tape alphabet Γ of a standard TM?
2
11. If L1 and L2 are Turing-Recognizable then L1 ∪ L2 will be
(a) Decidable
(b) Turing-recognizable but may not be decidable
(c) May not be Turing recognizable
(d) None of above
12.
Consider u = abbaba
v = bab
w = aabb
3
(c) (a + b)* a (a + b) b(a + b)* (d) (a + b)*
17. Which of the following statements about regular languages is Not true?
S → aSAb | ԑ
A → bA | ԑ
Grammar generates:
4
(c) {w ∈ (a + b)* | #a (w) = #b (w)} and {w ∈ (a + b)* | #a (u) ≠ #b (w)}
(d) {ԑ}, {wa | w ∈ (a + b)* and wb | w ∈ (a + b)*}
True?
i. (00)* (ԑ + 0)
ii. (00)*
iii. 0*
iv. 0(00)*
(a) all binary strings with unequal number of 0’s and 1’s
(b) all binary strings with ԑ-string
(c) all binary strings with exactly | more 0 than the number of 1’s
or one more | than number of 0’s
(d) None of above