wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

NFA, DFA Definition

Total questions: 15

Worksheet time: 13mins

Name
Class
Date
1.

There are ________ tuples in finite state machine.

a)

4

b)

5

c)

6

d)

Unlimited

2.

Transition function of DFA maps.

a)

Σ * 1 -> Σ

b)

Q * Q -> Σ

c)

Σ * Σ -> Q

d)

Q * Σ -> Q

3.

An NFA’s transition function returns

a)

A Boolean value

b)

A state

c)

An edge

d)

A set of states

4.

Which is true for Dead State?

a)

It cannot be reached anytime

b)

There is no necessity of the state

c)

If control enters no way to come out from the state

d)

If control enters FA deads

5.

The Tuples for NDFA

a)

∑,Q,q0,F,δ

b)

Q,q0,F,δ

c)

Θ,Q,q0,F,δ

d)

F,Q,Δ,q0, δ

6.

Which of the following is a not a part of

5-tuple finite automata?

a)

Input alphabet

b)

Transition function

c)

Initial State

d)

output Alphabet

7.

The DFA shown accepts the set of all strings over {0, 1} that

a)

End with 00

b)

End with 0

c)

Begin either with 0 or 1

d)

Contain the substring 00

8.
a)

{w | w ends with 010}

b)

{w | w starts with 010}

c)

{w | w contains 010 as a substring}

d)

{w | w does not contain 010 as a substring}

9.

Number of states require to accept string ends with 10.

a)

3

b)

2

c)

1

d)

5

10.

When in State S2 if the input is 1

a)

The machine will remain in state S2

b)

The machine will change state to S1

c)

The Machine will return to the Start State

d)

The machine will return the value of 0

11.

In this DFA the accepted Input is

a)

01

b)

10

c)

00

d)

11

12.

Starting at state S1 what state would input 'acd' change to

a)

S1

b)

S3

c)

S4

d)

S2

13.

An input of 'ab' would result in state

a)

S1

b)

S2

c)

S3

d)

S4

14.

From the starting state is input 'abc' valid (accepted)?

a)

YES

b)

NO

15.

What state will the machine rest in with an input of 'aabacda'?

a)

S4

b)

S3

c)

S2

d)

S1