wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AP CSP Unit 1 - Lessons 1-7 Unit Test

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

A binary question is defined as:

a)

Two questions which share the same answer

b)

A message which has two possible states

c)

A question which can be answered in only one of two possible ways

d)

A piece of information that is sent in pairs

2.

A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB. Unfortunately, your friend set the bit on the wire once every 2 seconds, but you read the wire once every second. Assuming that the first bit was sent and read at the same time, what message did you receive instead?

a)

ABAB

b)

AABB

c)

AAAA

d)

BBBB

e)

ABBB

3.

If you just had two shapes (say, a circle and a square), how many 3-place patterns could you make?

a)

4

b)

6

c)

8

d)

10

e)

12

4.

You have a coordinate grid that is 96 x 96. Assuming that you encode the x and y coordinate as separate numbers, what is the minimum number of bits that you will need to encode a coordinate in that space?

a)

16

b)

14

c)

13

d)

10

5.

What is the minimum number of bits you need to encode the 26 letters of the alphabet plus a space?

a)

2

b)

3

c)

4

d)

5

e)

6

6.

The standard QWERTY keyboard (the keyboard you are currently using.) has 47 keys that can place characters on the screen. Each of these keys can also display a second character by holding the "Shift" key at the same time. How many bits would you need to encode everything that could be typed on this keyboard?

a)

4

b)

5

c)

6

d)

7

e)

8

7.

What is the best explanation for why digital data is represented in computers in binary?

a)

The binary number system is the only system flexible enough to allow for representing data other than numbers.

b)

It's easier, cheaper, and more reliable to build machines and devices that only have to distinguish between binary states.

c)

It typically takes fewer digits to represent a number in binary when compared to other number systems (for example, the decimal number system)

d)

It's impossible to build a computing machine that uses anything but binary to represent numbers

8.

What is the 4-bit binary number for the decimal number Ten (10)?

a)

0010

b)

1010

c)

0110

d)

0101

9.

Number systems with different bases such as binary (base-2) and decimal (base-10) are all used to view and represent digital data.

Which of the following is NOT true about representing digital data?

a)

At one of the lowest levels of abstraction, all digital data can be represented in binary using only combinations of the digits zero and one.

b)

The same value (number) can have a different representation depending on the number system used to represent it.

c)

Groups of bits can be used to represent abstractions, including but not limited to numbers and characters.

d)

Some large numbers cannot be represented in binary and can only be represented in decimal.

10.

Consider the following three binary numbers:

01010

010000

1110

Which of the following lists the numbers in order from least to greatest?

a)

010000

1110

01010


b)

01010

1110

010000


c)

01010

010000

1110


d)

1110

01010

010000


11.

8 bits is enough to represent 256 different numbers. How many total bits do you need to represent 512 (twice as many) numbers?

a)

9

b)

10

c)

16

d)

17

12.

Two students have developed a protocol in which they send 4-bit messages to each other. They decide to modify their protocol to start sending 8-bit messages instead. How many more values can be represented in an 8-bit message than a 4-bit message?

a)

2^1 = 2 times as many values

b)

2^2 = 4 times as many values

c)

2^3 = 8 times as many values

d)

2^4 = 16 times as many values