πŸ“Š Theory of Computation
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Turing recognizable languages are closed under union and complementation
πŸ“Š Theory of Computation
Q. 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
  • (C) P is in NP but not NP-complete
  • (D) P is neither NP-hard nor in NP
πŸ’¬ Discuss
βœ… Correct Answer: (A) P is NP-complete
πŸ“Š Theory of Computation
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) NP-complete and in P respectively
πŸ“Š Theory of Computation
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) n + 1
πŸ“Š Theory of Computation
Q. Consider a stack, which is limited to 10 items. The language accepted by a push- down automaton in such stack is best described as
  • (A) Regular
  • (B) Deterministic context free
  • (C) Context free
  • (D) Recursive
πŸ’¬ Discuss
βœ… Correct Answer: (A) Regular
πŸ“Š Theory of Computation
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) 3
πŸ“Š Theory of Computation
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) P3 is undecidable if P2 is reducible to P3

Jump to