Top 150+ Solved Theory of Computation MCQ Questions Answer

From 76 to 90 of 137

Q. The logic of pumping lemma is a good example of

a. Pigeon-hole principle

b. Divide-and-conquer technique

c. Recursion

d. Iteration

  • a. Pigeon-hole principle

Q. For two regular languages L1 = (a + b)* a and L2 = b (a + b ) *, the intersection of L1 and L2 is given by

a. (a + b ) * ab

b. ab (a + b ) *

c. a ( a + b ) * b

d. b (a + b ) * a

  • d. b (a + b ) * a

Q. Pumping lemma is generally used for proving that

a. Given grammar is regular

b. Given grammar is not regular

c. Whether two given regular expressions are equivalent or not

d. None of these

  • b. Given grammar is not regular

Q. FSM can recognize

a. Any grammar

b. Only CG

c. Both (a) and ( b )

d. Only regular grammar

  • d. Only regular grammar

Q. Basic limitation of FSM is that it

a. Cannot remember arbitrary large amount of information

b. Sometimes fails to recognize grammars that are regular

c. Sometimes recognizes grammars are not regular

d. None of these

  • a. Cannot remember arbitrary large amount of information

Q. If L and L¯ are recursively enumerable, then L is

a. Regular

b. Context free

c. Context sensitive

d. Recursive

  • d. Recursive

Q. Which of the following problems is undecidable?

a. Membership problem for CFGs

b. Ambiguity problem for CFGs.

c. Finiteness problem for FSAs.

d. Equivalence problem for FSAs.

  • b. Ambiguity problem for CFGs.

Q. Which statement is true?

a. The PDA must have one accept state and one reject state

b. The PDA must have one accept state and two reject state

c. The PDA must have two accept state and two reject state

d. There is no reject state in the PDA.

  • d. There is no reject state in the PDA.

Q. Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph G =(V,E)with V divisible by 3 and DHAM3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true?

a. Both DHAM3 and SHAM3 are NP-hard

b. SHAM3 is NP-hard, but DHAM3 is not

c. DHAM3 is NP-hard, but SHAM3 is not

d. Neither DHAM3 nor SHAM3 is NP-hard

  • a. Both DHAM3 and SHAM3 are NP-hard
Subscribe Now

Get All Updates & News