Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Theory of Computation Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

In Moore machine, output is produced over the change of:

a)

transitions

b)

states

c)

all of the mentioned

d)

none of the mentioned

2.

In a Mealy machine, output is produced over the change of:

a)

transitions

b)

states

c)

both transitions and states

d)

none of the mentioned

3.

Which of the following is true about finite state machines?

a)

They can only recognize regular languages

b)

They are not used in computer science

c)

They can have an infinite number of states

d)

They can be implemented using a stack

4.

What is the primary difference between a Moore machine and a Mealy machine?

a)

There is no difference

b)

Mealy machines have more states than Moore machines

c)

Moore machines are faster than Mealy machines

d)

Output depends on states in Moore, transitions in Mealy

5.

Number of states require to accept string ends with 10.

a)

3

b)

2

c)

1

d)

0

6.

Which of the following statements is true regarding deterministic finite automata (DFA)?

a)

They cannot recognize all regular languages

b)

They can be converted to non-deterministic finite automata (NFA)

c)

They can have multiple transitions for the same input

d)

They require more states than NFA for the same language

7.

In a finite state machine, what is the role of the transition function?

a)

To define the output for each state

b)

To determine the next state based on current state and input

c)

To initialize the machine

d)

To accept or reject the input string

8.

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)

ab(a+b)ba

9.

In a finite state machine, what does it mean for a state to be accepting?

a)

This state has no outgoing transitions

b)

The input string is accepted if the machine ends in this state

c)

The machine can transition to this state

d)

The machine will produce an output

10.

There are ________ tuples in finite state machine.

a)

4

b)

5

c)

6

d)

7