wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Review 11Q

Total questions: 11

Worksheet time: 13mins

Name
Class
Date
1.

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

a)

0010

b)

1010

c)

0110

d)

0101

2.

What is the minimum number of bits you would need to encode the 26 letters of the alphabet plus a space – a total of 27 characters?

a)

7 BITS

b)

6 BITS

c)

5 BITS

d)

4 BITS

3.

ASCII is a character-encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter “G” is represented by the decimal (base 10) value 71. A partial list of characters and their corresponding ASCII values are shown in the table below.


ASCII characters can also be represented by hexadecimal numbers. According to ASCII character encoding, which of the following letters is represented by the hexadecimal (base 16) number 56?

a)

A

b)

L

c)

V

d)

Y

4.

Consider the following numbers given in Binary (BIN), Decimal (DEC), and hexadecimal (HEX) representations:


BIN: 1110

DEC: 13

HEX: F

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

a)

BIN: 1110, DEC: 13, HEX: F

b)

DEC: 13, BIN: 1110, HEX: F

c)

DEC: 13, HEX: F, BIN: 1110

d)

HEX: F, DEC: 13, BIN: 1110

5.

A video-streaming Web site uses 32-bit integers to count the number of times each video has been played. In anticipation of some videos being played m ore times than can be represented with 32 bits, the Web site is planning to change to 64-bit integers for the counter. Which of the following best describes the result of using 64-bit integers instead of 32-bit integers?

a)

2 times as many values can be represented

b)

32 times as many values can be represented

c)

2^32 times as many values can be represented

d)

32^2 times as many values can be represented

6.

A programmer completes the user manual for a video game she has developed and realizes she has reversed the roles of goats and sheep throughout the text. Consider the programmer’s goal of changing all occurrences of “goats” to “sheep” and all occurrences of “sheep” to “goats”. The programmer will use the fact that the word “foxes” does not appear anywhere in the original text.

Which of the following algorithms can be used to accomplish the programmer’s goal?

a)

First, change all occurrences of “goats” to “sheep”

Then, change all occurrences of “sheep” to “goats”

b)

First, change all occurrences of “goats” to “sheep”

Then, change all occurrences of “sheep” to “goats”

Last, change all occurrences of “foxes” to “sheep”

c)

First, change all occurrences of “goats” to “foxes”

Then, change all occurrences of “sheep” to “goats”

Last, change all occurrences of “foxes” to “sheep”

d)

First, change all occurrences of “goats” to “foxes”

Then, change all occurrences of “foxes” to “sheep”

Last, change all occurrences of “sheep” to “goats”

7.

Which of the following statements are true about routers and routing on the Internet? (Choose two)

a)

Protocols ensure that a single path between two computers is established before sending packets over it

b)

Routers are hierarchical and the “root” router is responsible for communicating to sub-routers the best paths for them to route internet traffic

c)

A packet traveling between two computers on the Internet may be routed many times along the way or even lost or “dropped”

d)

Routers act independently and route packets as they see fit

8.

From the list provided choose the two (2) answers that correctly describe which Internet protocol relies on the other. For example: if protocol A relies on protocol B, it means that A is a higher level protocol than B, and thus protocol B must exist and work properly in order for protocol A to do its job.

a)

TCP/IP relies on HTTP

b)

HTTP relies on TCP/IP

c)

DNS relies on TCP/IP

d)

TCP/IP relies on DNS

9.

The figure below shows a circuit composed of two logic gates. The output of the circuit is true.

Which of the following is a true statement about input A?

a)

Input A must be true

b)

Input A must be false

c)

Input A can be either true or false

d)

There is no possible value of input A that will cause the circuit to have the output true

10.

The following question uses a robot in a grid of squares. The robot is represented as a triangle, which is initially in the bottom left square of the grid and facing right.

Consider the code segment, which moves the robot in the grid.


Which of the following shows the location of the robot after running the code segment

a)
b)
c)
d)
11.

Which of the following can be represented by a single binary digit? Select TWO answers

a)

Any number modulus 2

b)

The temperature outside

c)

The score on a math test

d)

If a grade is passing or failing