Top 150+ Solved Theory of Computation MCQ Questions Answer

From 91 to 105 of 137

Q. The production Grammar is {S->aSbb,S->abb} is

a. type-3 grammar

b. type-2 grammar

c. type-1 grammar

d. type-0 grammar

  • b. type-2 grammar

Q. Regular expression (x/y)(x/y) denotes the set

a. {xy,xy}

b. {xx,xy,yx,yy}

c. {x,y}

d. {x,y,xy}

  • b. {xx,xy,yx,yy}

Q. Which one of the following is true regarding FOTRAN?

a. It is a context free language

b. It is a context sensitive language

c. It is a regular language

d. None of the above

  • b. It is a context sensitive language

Q. TM is more powerful than FSM because

a. The tape movement is confined to one direction

b. It has no finite state control

c. It has the capability to remember arbitrary long sequences of input symbols

d. None of these

  • b. It has no finite state control

Q. Suppose that a problem A is known to have a polynomial-time verificationalgorithm. Which of the following statements can be deduced.

a. A is in NP.

b. A is in NP but not P

c. A is in both NP and P.

d. A is NP-complete.

  • b. A is in NP but not P

Q. A PC not connected to a network is equivalent to

a. A Deterministic Finite-State Automaton,

b. A Turing Machine,

c. A Push-Down Automaton,

d. None of the above.

  • a. A Deterministic Finite-State Automaton,

Q. Recursively enumerable languages are not closed under:

a. Union

b. Intersection

c. Complementation

d. Concatenation

  • c. Complementation

Q. 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

c. (L1)’ and (L2)’ are recursively enumerable

d. (L1)’ is recursively enumerable and (L2)’ is recursive

  • b. (L1)’ is recursive and (L2)’ is not recursively enumerable

Q. 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

  • a. Turing machine

Q. Which of the following statement is true?

a. All languages can be generated by CFG

b. The number of symbols necessary to simulate a Turing Machine(TM) with m symbols and n states is mn.

c. Any regular languages have an equivalent CFG.

d. The class of CFG is not closed under union.

  • c. Any regular languages have an equivalent CFG.

Q. Recursively enumerable languages are not closed under

a. Complementation

b. Union

c. Intersection

d. None of the above

  • a. Complementation
Subscribe Now

Get All Updates & News