wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSAL 313_MIDTERM EXAM

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

It is the study of abstract computing devices, or “machines”

(a)  

2.

Who is the Father of Modern Computer Science?

(a)  

3.

The machine can exist in multiple states at the same time.

(a)  

4.

A (a)   is a collection of sentences of finite length all constructed from a finite alphabet of symbols

5.

The machine can exist in only one state at any given time.

(a)  

6.

A (a)   is a mathematical model of computation that defines an abstract machine, which manipulates symbols on a strip of tape according to a table of rules.

7.

(a)   is the simplest machine to recognize patterns.

8.

Which process is being required to obtain the minimal version of any DFA?

(a)  

9.

What do you call this icon ∑?

(a)  

10.

In DFA what do you call this icon ∅?

(a)  

11.

Which one of the following is FALSE?

a)

There is unique minimal DFA for every regular language

b)

Every NFA can be converted to an equivalent PDA.

c)

The complement of every context-free language is recursive.

d)

Every nondeterministic PDA can be converted to an equivalent deterministic PDA.

12.

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.

13.

Let w be any string of length n is {0,1}*. Let L be the set of all substrings of w. What is the minimum number of states in a non-deterministic finite automaton that accepts L?

a)

n - 1

b)

n

c)

n + 1

d)

2n - 1

14.

A deterministic finite automaton (DFA) D with alphabet {a,b} is given below. Which of the following finite state machines is a valid minimal DFA which accepts the same language as D?

a)
b)
c)
d)
15.

The definition of a language L with alphabet {a} is given as following. L={a^nk | k>0, and n is a positive integer constant} What is the minimum number of states needed in DFA to recognize L?

a)

k+1

b)

n+1

c)

2^(n+1)

d)

2^(k+1)