Top 150+ Solved Theory of Computation MCQ Questions Answer

From 31 to 45 of 137

Q. A language is regular if and only if

a. Accepted by DFA

b. Accepted by PDA

c. Accepted by LBA

d. Accepted by Turing machine

  • a. Accepted by DFA

Q. Which of the following is not a regular expression?

a. [(a+b)*-(aa+bb)]*

b. [(0+1)-(0b+a1)*(a+b)]*

c. (01+11+10)*

d. (1+2+0)*(1+2)*

  • b. [(0+1)-(0b+a1)*(a+b)]*

Q. Which of the following is TRUE?

a. Every subset of a regular set is regular

b. Every finite subset of a non-regular set is regular

c. The union of two non-regular sets is not regular

d. Infinite union of finite sets is regular

  • b. Every finite subset of a non-regular set is regular

Q. Which one of the following languages over the alphabet {0,1} is describedby the regular expression: (0+1)*0(0+1)*0(0+1)*?

a. The set of all strings containing the substring 00.

b. The set of all strings containing at most two 0’s.

c. The set of all strings containing at least two 0’s.

d. The set of all strings that begin and end with either 0 or 1.

  • c. The set of all strings containing at least two 0’s.

Q. Which of the following are regular sets?

a. I and IV only

b. I and III only

c. I only

d. IV only

  • a. I and IV only

Q. Which one of the following statement is true for a regular language L over {a} whose minimal finite state automation has two states?

a. L must be either {an I n is odd} or {an I n is even}

b. L must be {an I n is odd}

c. L must be {an I n is even}

d. L must be {an I n = 0}

  • a. L must be either {an I n is odd} or {an I n is even}

Q. Type-1 Grammar is known as_____________

a. CFG

b. CSG

c. REGULAR

d. All

  • b. CSG

Q. The language accepted by a Push down Automata:

a. Type0

b. Type1

c. Type2

d. Type3

  • c. Type2

Q. Which of the following problems is undecidable?

a. Membership problem for CFGs

b. Ambiguity problem for CFGs

c. Finiteness problem for Finite state automata FSAs

d. Equivalence problem for FSAs

  • b. Ambiguity problem for CFGs
Subscribe Now

Get All Updates & News