Top 150+ Solved Theory of Computation MCQ Questions Answer

From 121 to 135 of 137

Q. The problem 3-SAT and 2-SAT are

a. Both in P

b. Both NP complete

c. NP-complete and in P respectively

d. Undecidable and NP-complete respectively

  • c. NP-complete and in P respectively

Q. Which of the following instances of the post correspondence problem has a viable sequence (a solution)?

a. {(b, bb), (bb, bab), (bab, abb), (abb, babb)}

b. {(ab, aba), (baa, aa), (aba, baa)}

c. {(ab, abb), (ba, aaa), (aa, a)}

d. none of the above

  • c. {(ab, abb), (ba, aaa), (aa, a)}

Q. Let FHAM be the problem of finding a Hamiltonian cycle in a graph G and DHAM be the problem of determining if a Hamiltonial cycle exists in a graph. Which one of the following is TRUE?

a. Both FHAM and DHAM are NP-hard

b. FHAM is NP hard, but DHAM is not

c. DHAM is NP hard, but FHAM is not

d. Neither FHAM nor DHAM is NP hard

  • a. Both FHAM and DHAM are NP-hard

Q. Consider three problems P1, P2 and P3. It is known that P1 has polynomial time solution and P2 is NP-complete and P3 is in NP. Which one of the following is true.

a. P3 has polynomial time solution if P1 is polynomial time reducible to P3

b. P3 is NP complete if P3 is polynomial time reducible to P2

c. P3 is NP complete if P2 is reducible to P3

d. P3 has polynomial time complexity and P3 is reducible to P2

  • c. P3 is NP complete if P2 is reducible to P3

Q. Which one of the following is not decidable?

a. given a Turing machine M, a string s, and an integer k, M accepts s with k steps

b. equivalence of two given Turing machines

c. language accepted by a given DFSA is nonempty

d. language generated by a CFG is nonempty

  • b. equivalence of two given Turing machines

Q. Which of the following statement is false for a turing machine?

a. There exists an equivalent deterministic turing machine for every nondeterministic turing machine

b. Turing decidable languages are closed under intersection and complementation

c. Turing recognizable languages are closed under union and intersection

d. Turing recognizable languages are closed under union and complementation

  • d. Turing recognizable languages are closed under union and complementation

Q. 3-SAT and 2-SAT problems are

a. NP-complete and in P respectively

b. Undecidable and NP-complete

c. Both NP-complete

d. Both in P

  • a. NP-complete and in P respectively

Q. Out of the three decision problems P1, P2 and P3, P1 is decidable and P2 is undecidable. The statement that holds true is

a. P3 is decidable if P3 is reducible to compliment of P2

b. P3 is decidable if P1 is reducible to P3

c. P3 is undecidable if P1 is reducible to P3

d. P3 is undecidable if P2 is reducible to P3

  • d. P3 is undecidable if P2 is reducible to P3
Subscribe Now

Get All Updates & News