Theory of Computation Test 2: Number of Questions: 25 Section Marks: 30
Theory of Computation Test 2: Number of Questions: 25 Section Marks: 30
12. Which of the following is False, if A is mapping reduc- 19. If A ≤m B (i.e., A is reducible to B) and if B is regu-
ible to B? lar language then does it implies that A is a regular
(A) If B is decidable then A is decidable. language?
(B) If B is recursively enumerable then A is recursive- (A) Yes
ly enumerable. (B) No
(C) If A is undecidable then B is undecidable. (C) Data insufficient
(D) None of the above (D) Reduction is not possible with regular languages.
13. Which of the following language is Recursive? 20. If a language L is recursively enumerable and L ≤m L
(A) L1 = {<M>|M is a TM and there exists an input on then, which of the following is TRUE?
which M halts in less than |<M>| steps.} (A) L is recursive
(B) L2 = {<M> | M is a TM and |L (M)| ≤ 3} (B) L may or may not be recursive
(C) L3 = {<M> | M is a TM and |L (M)| ≥ 3} (C) L is undecidable
(D) All of the above (D) None of these
14. The language {<M> | M is a Turing machine and L(M) 21. Which of the following language(s) is/are undecidable?
is finite} is L1 = {<M> | M is a TM and L(M) is a CFL}
(A) recursive L2 = {<M> | M is a TM and L(M) is finite}
(B) recursively enumerable (A) L1 only (B) L2 only
(C) not recursively-enumerable (C) Both L1 and L2 (D) Neither L1 nor L2
(D) decidable 22. For which of the following language(s) a Turing
15. Which of the following problem is Recursive? machine exists?
(i) {<M> | M is a DFA and L(M) is finite} (i) ∅ (ii) {ε}
(ii) {<M> | M is a DFA and L(M) = Σ*} (A) (i) only (B) (ii) only
(iii) {<M, x> | M is a DFA and M accepts x} (C) Both (i) and (ii) (D) Neither (i) nor (ii)
(A) (i), (ii) (B) (iii) only 23. A language L is recursive if
(C) (ii), (iii) (D) (i), (ii), (iii) (A) L is recursively enumerable.
16. Which of the following is not accepted by a PDA but (B) L is recursively enumerable.
accepted by a TM? (C) Both L and L are recursively enumerable.
(A) {an bn c an bn | n > 0} (D) L is not recursively enumerable.
(B) {an b2n c3n | n ≥ 0} 24. If a Language L is recursively enumerable but not
(C) {an bn+m cm dm | m, n ≥ 0} recursive then L
(D) All of the above (A) is recursive
17. Which of the following has same power as Turing (B) is recursively enumerable
machine? (C) is not recursively enumerable
(A) NDFA (B) 2-PDA (D) is decidable
(C) k-tape TM (D) Both (B) and (C) 25. A decision problem is undecidable if
18. The language L = {an bn cn | n ≥ 0} can be accepted by (i) it has no algorithm to solve
a: (ii) it has no TM that halts on every input
(i) 2-PDA (ii) TM (iii) it specifies a language which is not recursive.
(A) (i) only (B) (ii) only (A) (i), (ii) (B) (ii) only
(C) Both (i) and (ii) (D) Neither (i) nor (ii) (C) (i), (iii) (D) (i), (ii), (iii)
Answer Keys
1. D 2. D 3. C 4. B 5. C 6. D 7. A 8. D 9. C 10. C
11. D 12. D 13. A 14. C 15. D 16. D 17. D 18. C 19. B 20. A
21. C 22. C 23. C 24. C 25. D
Theory of Computation Test 2 | 3.141