Sie sind auf Seite 1von 2

This document contains sample multiple-choice questions on Chapter 1 of the textbook.

This is an individual, closed-book (and notes, cell phone, ...) exam. You have 15 minutes. Write
CS250 in the Subject and Sample in the Test No. fields of your scantron form. Do not use
your pen name. For every question, select the correct choice or select [-E-] if no proposed choice is
correct. I cannot answer questions during the exam. You can keep this test.

1.

Let X and Y be Boolean values. not (not (X or Y )) is equivalent to:


[-A-]
[-B-]
[-C-]
[-D-]

2.

Let X = {1, 2, 5, 6} and Y = {3, 4, 5, 6}. X Y is:


[-A-]
[-B-]
[-C-]
[-D-]

3.

(X 0 )0 = X
0 = U
A A0 =
(A B)0 = A0 B 0

Let Z denote the integers and E the even integers.


Let X = {2k + 3 | k E} and Y = {4k 1 | k Z}.
Select the most accurate answer.
[-A-]
[-B-]
[-C-]
[-D-]

6.

{1, 2, 3, 4, 5, 6}
{1, 2, 3, 4}
{5, 6}

Which of the following is a De Morgans law:


[-A-]
[-B-]
[-C-]
[-D-]

5.

{1, 2, 3, 4, 5, 6}
{1, 2, 3, 4}
{5, 6}

Let X = {1, 2, 5, 6} and Y = {3, 4, 5, 6}. X Y is:


[-A-]
[-B-]
[-C-]
[-D-]

4.

(not X) and (not Y )


X or Y
X and Y
(not X) or (not Y )

X
X
X
X

=Y
Y
Y
6= Y

A bag or multiset containing the numbers 1, 2, and 3 is usually denoted as:


[-A-]
[-B-]
[-C-]
[-D-]

{1, 2, 3}
[1, 2, 3]
(1, 2, 3)
h1, 2, 3i

7.

Let X and Y be sets. If |X| = 5 and |Y | = 2 then |X Y | =


[-A-]
[-B-]
[-C-]
[-D-]

8.

Let L = ha, hb, ci, di. tail(tail(L)) is


[-A-]
[-B-]
[-C-]
[-D-]

9.

X
X
X
X

=Y
Y
Y
6= Y

Let G be a graph with vertices {a, b, c, d} and edges {{a, b}, {b, c}, {c, d}, {d, a}, {a, c}}.
The chromatic number of G is:
[-A-]
[-B-]
[-C-]
[-D-]

12.

4
8
14
16

Let L and M languages and X = L M and Y = (L M ) .


Select the most accurate answer.
[-A-]
[-B-]
[-C-]
[-D-]

11.

hi
b
c
hci

Let L = {a, b} and M = {ab, ba} be languages. How many strings are in (L M )2
[-A-]
[-B-]
[-C-]
[-D-]

10.

5
7
10
25

2
3
4
5

Let ha, hd, hci, hf, hyi, hxiii, he, hgiii be the list representation of a tree T .
A depth-first traversal of T is:
[-A-]
[-B-]
[-C-]
[-D-]

a, c, d, e, f, g, x, y
a, d, c, f, y, x, e, g
a, d, e, c, f, g, y, x
y, x, g, f, e, d, c, a

page 2 of 2

Das könnte Ihnen auch gefallen