wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FAFL_Quiz

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

If Σ={a}, then Σ*=?

a)


{ε, a, aa,…..}

b)

{ε , a , aa}

c)

{ε}

d)

{a,aa,...}

2.

Which one of the following languages over the alphabet {0,1} is described by the regular expression: (0+1)*0(0+1)*0(0+1)*?

a)

The set of all strings containing the substring 00

b)

The set of all strings containing at most two 0’s.

c)

The set of all strings containing at least two 0’s

d)


The set of all strings that begin and end with either 0 or 1.

3.

Given the DFA transition table, what is the final state for the input string "ab"?

a)

q0

b)

q1

c)

q2

d)

no final state

4.

What is the number states obtained after minimizing DFA?

a)

2

b)

3

c)

4

d)

5

5.

Which of the following one can relate to the given statement:
Statement: If n items are put into m containers, with n>m, then atleast one container must contain more than one item.

a)

Pumping lemma

b)

Pigeon Hole principle

c)

Count principle

d)

None of the mentioned

6.

If we select a string w such that w∈L, and w=xyz. Which of the following portions cannot be an empty string?

a)

x

b)

y

c)

z

d)

All of the mentioned

7.

Which of the following is the corresponding Language to the given DFA?

a)

L = {x ϵ {0, 1} * | x ends in 1 and does not contain substring 01}

b)

L = {x ϵ {0,1} * |x ends in 1 and does not contain substring 00}

c)

L = {x ϵ {0,1} |x ends in 1 and does not contain substring 00}

d)

L = {x ϵ {0,1} * |x ends in 1 and does not contain substring 11}

8.

State true or false?
Statement: An NFA can be modified to allow transition without input alphabets, along with one or more transitions on input symbols.

a)

True

b)

False

9.

Which of the following is correct?
Statement 1: ε represents a single string in the set.
Statement 2: Ф represents the language that consist of no string.

a)

Statement 1 and 2 both are correct

b)

Statement 1 is false but 2 is correct

c)

Statement 1 and 2 both are false

d)

There is no difference between both the statements, ε and Ф are different notation for same reason

10.

If ∑= {0,1}, then Ф* will result to:

a)

ε

b)

Ф

c)

d)

None of the mentioned