Simplified guide of MCQs for Exams, Interviews

Sub Topic: Theory of Computation

1 .  There are ________ tuples in finite state machine

  • A. 4
  • B. 5
  • C. 6
  • D. 7

Correct Answer:

5


2 .  Number of states require to accept string ends with 10

  • A. 3
  • B. 2
  • C. 1

Correct Answer:

3


3 .  Languages of a automata is

  • A. If it is accepted by automata
  • B. If it halts
  • C. If automata touch final state in its life time
  • D. All language are language of automata

Correct Answer:

If it is accepted by automata


4 .  Language of finite automata is

  • A. Type 0
  • B. Type 1
  • C. Type 2
  • D. Type 3

Correct Answer:

Type 3


5 .  Finite automata requires minimum _______ number of stacks.

  • A. 1
  • B. 0
  • C. 2

Correct Answer:

0


6 .  Number of final state require to accept Φ in minimal finite automata.

  • A. 1
  • B. 2
  • C. 3
  • D. None of the mentioned

Correct Answer:

None of the mentioned


7 .  Regular expression for all strings starts with ab and ends with bba is.

  • A. aba*b*bba
  • B. ab(ab)*bba
  • C. ab(a+b)*bba
  • D. All of the mentioned 9.

Correct Answer:

ab(a+b)*bba


8 .  How many DFA exits with two states over input alphabet {0,1} ?

  • A. 16
  • B. 26
  • C. 32
  • D. 64

Correct Answer:

64


9 .  The basic limitation of finite automata is that

  • A. It can not remember arbitrary large amount of information
  • B. It sometimes recognize grammar that are not regular
  • C. It sometimes fails to recognize regular grammar
  • D. All of the mentioned

Correct Answer:

It can not remember arbitrary large amount of information


10 .  A Moore machine is a collection of __________ things.

  • A. two
  • B. three
  • C. four
  • D. five

Correct Answer:

five