Theory of Computation (Chapter - Unit 4) Solved MCQs (Set-1)
Theory of Computation (Chapter - Unit 4) Solved MCQs (Set-1)
Chapter: Unit 4
at
A. P3 has polynomial time solution if P1 is polynomial time reducible to P3
M
B. P3 is NP complete if P3 is polynomial time reducible to P2
q
c
C. P3 is NP complete if P2 is reducible to P3
M
D. P3 has polynomial time complexity and P3 is reducible to P2
Answer: C
3. Which one of the following is the strongest correct statement about a finite
language Lover a finite alphabet ??
A. L is undecidable
B. L is recursive
C. L is a CSL
D. L is a regular set
Answer: D
8. Two persons X and Y have been asked to show that a certain problem p is NP-
complete. X shows a polynomial time reduction from the 3-SAT problem to p and
Y shows a polynomial time reduction from p to 3-SAT. From these reduction it can
be inferred that
A. P is NP-complete
B. P is NP-hard but not NP-complete
10. Let n be the positive integer constant and L be the language with alphabet {a}.
To recognize L the minimum number of states required in a DFA will be
A. 2k + 1
B. k + 1
C. 2n + 1
D. n + 1
Answer: D
12. State table of an FSM is given below. There are two states A And B, one input
and one output. Let the initial state be A = 0 and B = 0. To take the machine to the
state A = 0 and B = 1 with output = 1 the minimum length of input string required
will be
A. 2
B. 7
C. 4
D. 3
Answer: D
15. How many states are present in the minimum state finite automaton that
recognizes the language represented by the regular expression (0+1)(0+1)…..N
times?
A. n+1
B. n+2
C. n
D. 2n
Answer: B
16. Consider the state table of a finite state machine that has input x and a single
output z. The shortest input sequence to reach the final state C if the initial state is
unknown is
A. 10
B. 01
C. 101
D. 110
Answer: A
17. The set that can be recognized by a deterministic finite state automaton is
A. The set {1, 101, 11011, 1110111, …….}
B. The set of binary string in which the number of 0’s is same as the number of1’s
C. 1, 2, 4, 8……2n ….. written in binary
19. Which of the following assertions about Turing Machines is true? Blank
symbol(s) may occur in the input. At any stage of a computation, there are only
finitely many non-blank Symbols on the tape.
A. Assertions (a) and (b) are both true.
B. Neither (a) nor (b) is true.
C. Both False
D. None of above
Answer: C
22. Let L1 be a recursive language, and let L2 be a recursively enumerable but not
a recursive language. Which one of the following is TRUE?
A. (L1)’ is recursive and (L2)’ is recursively enumerable
B. (L1)’ is recursive and (L2)’ is not recursively enumerable
23. Let S be an NP-complete problem, Q and R be two other problems not known
to be in NP. Q is polynomial-time reducible to S and S is polynomial-time reducible
to R. Which one of the following statements is true?
A. R is NP-complete
B. R is NP-hard
C. Q is NP-complete
D. Q is NP-hard
Answer: A
24. For s ? (0+1)* let d(s) denote the decimal value of s(e.g.d(101)) = 5 Let L = {s ?
(0+1)* d(s) mod 5=2 and d(s) mod 7 != 4} Which one of the following statements is
true?
A. L is recursively enumerable, but not recursive
B. L is recursive, but not context-free
C. L is context-free, but not regular
D. L is regular
Answer: D
25. A FSM can be considered, having finite tape length without rewinding
capability and unidirectional tape movement
A. Turing machine
B. Pushdown automata
C. Context free languages
D. Regular languages
Answer: A