Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

TAFL Unit 1 Quiz: Finite Automata

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the output of a finite automaton?

a)

Grammar

b)

Automaton

c)

Language

d)

Transition

2.

Which of the following is not a part of a DFA?

a)

Finite set of states

b)

Alphabet

c)

Stack

d)

Transition function

3.

A DFA can have...

a)

Multiple initial states

b)

Multiple accepting states

c)

Infinite states

d)

ε-transitions

4.

In a DFA, from every state, for every input symbol, there is...

a)

No transition

b)

At most one transition

c)

At least one transition

d)

Exactly one transition

5.

Which one is more powerful?

a)

DFA

b)

NFA

c)

Both are equally powerful

d)

PDA

6.

What does an NFA use that a DFA does not?

a)

Stack

b)

Multiple transitions for same input

c)

Tape

d)

None of these

7.

The transition function of a DFA is:

a)

δ: Q × Σ → Q

b)

δ: Q × Σ → P(Q)

c)

δ: Q × Σ → Q × Σ

d)

δ: Q × Σ → Q × Γ × {L, R}

8.

The extended transition function is used for:

a)

States only

b)

Single symbol input

c)

Input strings

d)

Final state only

9.

A dead state in a DFA is one from which:

a)

No transition is possible

b)

No accepting state is reachable

c)

Loop is not allowed

d)

Input is invalid

10.

What is ε-closure of a state in an NFA?

a)

Set of all states reachable from it using 1 input

b)

Set of accepting states

c)

Set of states reachable using ε-transitions

d)

Final state set

11.

The minimal number of states in a DFA accepting only the empty string is:

a)

0

b)

1

c)

2

d)

Depends on the string

12.

DFA is used to recognize:

a)

Context-Free Languages

b)

Regular Languages

c)

Non-Regular Languages

d)

Type-1 Languages

13.

In which automaton do we not allow ε-transitions?

a)

ε-NFA

b)

NFA

c)

DFA

d)

PDA

14.

Which component is not part of a finite automaton?

a)

States

b)

Stack

c)

Transition function

d)

Alphabet

15.

Which of the following can be converted into a DFA?

a)

Regular Expression

b)

Context-Free Grammar

c)

Turing Machine

d)

Stack Automata

16.

In DFA minimization, which states are removed?

a)

Final states

b)

Dead states

c)

Unreachable states

d)

Initial state

17.

Which automaton uses a finite memory?

a)

DFA

b)

PDA

c)

Turing Machine

d)

LBA

18.

A DFA accepts an infinite language if:

a)

It has a dead state

b)

It has more than one final state

c)

It contains a cycle

d)

It is non-deterministic

19.

Which state is always present in a DFA?

a)

Final state

b)

Start state

c)

Trap state

d)

Intermediate state

20.

The language {w | w has an even number of 0s} is:

a)

Not regular

b)

Regular

c)

Context-Free

d)

Recursive