wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Finite Automata

Total questions: 50

Worksheet time: 50mins

Name
Class
Date
1.

There are ________ tuples in finite state machine.

a)

4

b)

5

c)

6

d)

7

2.

Transition function maps.

a)

Σ * Q -> Σ

b)

Q * Q -> Σ

c)

Σ * Σ -> Q

d)

Q * Σ -> Q

3.

Language of finite automata is.

a)

Type 0

b)

Type 1

c)

Type 2

d)

Type 3

4.

Which of the following options is correct?

Statement 1: Initial State of NFA is Initial State of DFA.

Statement 2: The final state of DFA will be every combination of final state of NFA.

a)

Statement 1 is true and Statement 2 is true

b)

Statement 1 is true and Statement 2 is false

c)

Statement 1 can be true and Statement 2 is true

d)

Statement 1 is false and Statement 2 is also false

5.

An automaton that presents output based on previous state or current input:

a)

Acceptor

b)

Classifier

c)

Transducer

d)

None of the mentioned.

6.

NFA, in its name has ’non-deterministic’ because of :

a)

The result is undetermined

b)

The choice of path is non-deterministic

c)

The state to be transited next is non-deterministic

d)

All of the mentioned

7.

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

a)

Contain the substring 00

b)

End with 00

c)

End with 0

d)

Begin either with 0 or 1

8.

From current state, on reading input symbol, it moves to more than one state

a)

DFA

b)

DFA with epsilon transitions

c)

NFA

9.

If a language L is accepted by NFA, then there exist a DFA to accept L

a)

Yes

b)

No

10.

Equivalent automata that accepts regular language is

a)

Turing Machine

b)

Linear Bounded Automata

c)

Push Down Automata

d)

Finite Automata

11.

A___________ is a collection of sentences of finite length all constructed from a finite alphabet of symbols.

a)

string

b)

word

c)

language

d)

alphabet

12.

FA can be used for

a)

calculating square root

b)

string recognition

c)

arithmetic operations

d)

comparision

13.

The finite state machine given in figure over alphabet {a,b} recognizes

a)

Any string with odd number of 'a'

b)

Any string with odd number of 'b'

c)

Any string with odd number of 'a' and even number of 'b'

d)

Any string with odd number of 'a' and odd number of 'b'

14.

The automata represent which of the languages given below?

a)

ba*b

b)

bab

c)

b*ab

d)

b*ab*

15.

Is the L(NFA) = L(DFA) ?

a)

Yes

b)

No

16.

The method to convert NFA to DFA

a)

set construction

b)

sub-set construction

c)

alphabet construction

d)

transition construction

17.

The initial state of both NFA and its equivalent DFA is same

a)

True

b)

False

18.

The final state of DFA will be every combination of final state of NFA.

a)

True

b)

False

19.

Every DFA is automatically an NFA

a)

True

b)

False

20.

In this FSM (Finite State Machine) which is the Accept State?

a)

S1

b)

S2

c)

0

d)

1

21.

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

22.
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}

23.

In a DFA, initial state can be more than one?

a)

Yes

b)

No

24.

A string is a finite sequence of symbols taken from

a)

input alphabet

b)

output alphabet

c)

transition function

d)

none of these

25.

Input={ A-Z , a-z , 0-9 } belongs to:

a)

English Alphabets

b)

Binary number

c)

Decimal number

d)

Alphanumeric

26.

A initial state is represented by:

a)

simply by a circle

b)

circle with an arrow

c)

simply by an arrow

d)

no representation at all

27.

What is the study of Automata?

a)

The study of automatic programming.

b)

the study of automatic procedure.

c)

The study of abstract computing devices or machines

d)

None of these

28.

The given automaton accepts strings starting with a or b.

a)

True

b)

False

29.

Choose the best option

a)

Deterministic Finite Automaton

b)

Non-Deterministic Finite Automaton

30.

q3 state is dead state in the given automaton.

a)

True

b)

False

31.

Number of states require to accept string ends with 10.

a)

3

b)

2

c)

1

d)

can't be represented

32.

Moore Machine is an application of:

a)

Finite automata without input

b)

Finite automata with output

c)

Non- Finite automata with output

d)

None of the mentioned

33.

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

a)

transitions

b)

states

c)

Both

d)

None of the mentioned

34.

The output alphabet can be represented as:

a)

δ

b)

c)

d)

None of the mentioned

35.

Concatenation Operation refers to which of the following set operations:

a)

Union

b)

Dot

c)

Kleen

d)

None

36.

A DFA can be represented in the following format

a)

Tree

b)

Transition table

c)

C Code

d)

None of the mentioned

37.

∑ is _________?

a)

set of input symbols

b)

set of output symbols

c)

set of states

d)

transitions

38.

Non-empty finite set of states is represented by _______

a)

b)

Q

c)

F

d)

q0

39.

δ represents_______?

a)

transition diagram

b)

transition function

c)

transition table

d)

empty string

40.

F represents________?

a)

set of final states

b)

final state

c)

states

d)

transitions

41.

NFA and DFA are equivalent.

a)

YES

b)

NO

c)

MAY BE

d)

CAN'T Say

42.

For a give Moore Machine, Given Input=’101’, thus the output would be of length

a)

4

b)

3

c)

2

d)

none

43.

8. ε-closure of state is combination of self state and

a)

ε-reachable state

b)

initial state

c)

final state

d)

all the above

44.

18. e-closure of (q0) is

a)

{q0,q1,q2,q3,q4}

b)

{q0,q1,q3,q4}

c)

{q0,q1,q2,q3}

d)

{q1,q2,q3}

45.
a)

aba

b)

abaabb

c)

aaba

d)

babab

46.

Which of the following is not an example of finite state machine system?

a)

Control Mechanism of an elevator

b)

Combinational Locks

c)

Traffic Lights

d)

Digital Watches

47.

Given: ∑= {a, b}

L= {xϵ∑*|x is a string combination}

∑4 represents which among the following?

a)

{aa, ab, ba, bb}

b)

{aaaa, abab, ε, abaa, aabb}

c)

{aaa, aab, aba, bbb}

d)

All of the mentioned

48.

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

49.

Check the string aabbb is accepted or not

a)

Accepted

b)

Not accepted

50.

Is the automata shown DFA or NFA?

a)

DFA

b)

NFA