wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Automata Theory Quiz

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.
Finite Automata has
a)
Unlimited Memory
b)
No memory at all
c)
Limited memory
d)
None of the above
2.
A finite automata recognizes
a)
Any language
b)
Context Sensitive Language
c)
Context Free Language
d)
Regular Language
3.

Which of the following statements is true about a string in the context of formal languages?

a)

It is an infinite sequence of symbols.

b)

It is a finite sequence of symbols from an alphabet.

c)

It is a set of symbols.

d)

It can contain symbols not in the alphabet.

4.

A language is considered a regular language if it can be recognized by a:

a)

Context-Free Grammar

b)

Pushdown Automaton

c)

Finite State Machine

d)

Turing Machine

5.

What is a language in the Theory of Computation?

a)

A set of states in a Finite State Machine.

b)

A set of strings over a given alphabet.

c)

A regular expression.

d)

The alphabet of symbols itself.

6.
Number of states required to accept string ends with 10.
a)
3
b)
2
c)
1
d)
can't be determined
7.
Number of final state required to accept φ in minimal FA
a)
1
b)
2
c)
3
d)
None of the mentioned
8.
How many DFAs exists with two states over input alphabet {0,1}?
a)
16
b)
26
c)
32
d)
64
9.
The transition function of a DFA is
a)
Option 1
b)
Option 2
c)
Option 3
d)
Option 4
10.
The basic limitation of finite automata is that
a)
It can’t 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
11.
The language accepted by the given FA is
a)
(ab)*
b)
bb*a
c)
b(ba)*a
d)
NULL
12.
Consider the string u=abbaba, v=bab and w=aabb. Which of the following is true for the given transition system.
a)
The automata accepts u and v but not w
b)
The automata accepts each u, v and w
c)
The automata rejects each u, v and w
d)
The automata accepts u but rejects v and w
13.

In a Deterministic Finite State Machine (FSM), for a given input symbol and a given state, how many possible next states are there?

a)

Zero or one.

b)

Exactly one.

c)

One or more.

d)

Any number.

14.

What is the key difference between a Deterministic FSM (DFSM) and a Nondeterministic FSM (NFSM)?

a)

An NFSM's transition function can result in a set of states.

b)

NFSMs have more states than equivalent DFSMs.

c)

DFSMs cannot have transitions on the empty string (ϵ).

d)

NFSMs can have multiple start states.

15.

What is the primary purpose of minimizing an FSM?

a)

To add more accepting states.

b)

To find the FSM with the fewest states that accepts the same language.

c)

To make it easier to design.

d)

To convert it to a regular expression.

16.

The regular expression `a*` matches which of the following strings?

a)

Any string consisting of zero or more 'a's.

b)

Any string of one or more 'a's.

c)

Only 'a'

d)

A string with no 'a's at all.

17.

If two states in a DFSM are indistinguishable, what does this imply for FSM minimization?

a)

They can be merged into a single state.

b)

The FSM cannot be minimized.

c)

One of them must be an accepting state and the other not.

d)

They have different transitions on the same input symbol.

18.

The regular expression `(a|b)c` describes which language?

a)

The set of strings containing 'a' or 'b' or 'c'.

b)

The set of strings { 'ac', 'bc' }.

c)

The set of strings { 'abc' }.

d)

The string 'abc' or the string 'c'.

19.

What does the transition δ(q0​,a)=q1​ represent in an FSM?

a)

The only valid input symbol is 'a'.

b)

When in state q0​ and reading the input symbol 'a', the machine moves to state q1​.

c)

The language accepted by the FSM is 'a'.

d)

The FSM starts in state q1​.

20.
What is true for a dead or trap state
a)
It cannot be reached any time
b)
There is no necessity of the state
c)
If control enters, there is no way to come out from the state
d)
If control enters, FA is dead