wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Review

Total questions: 50

Worksheet time: 2hrs 31mins

Name
Class
Date
1.

What two numbers do we use in binary?

a)

-1 & 0

b)

2 & 1

c)

1 & 0

d)

4 & 0

2.

What number does 110 represent in binary?

a)

6

b)

3

c)

8

d)

12

3.

How would you represent the number 5 in binary?

a)

10

b)

100

c)

101

d)

110

4.

What base is binary in?

a)

2

b)

4

c)

1

d)

7

5.

Latency

a)

The number of bits that are conveyed or processed per unit of time. e.g. 8 bits/sec.

b)

Time it takes for a bit to travel from its sender to its receiver.

c)

A set of rules governing the exchange or transmission of data between devices.

d)

A way of representing information using only two options

6.

Protocol

a)

A set of rules governing the exchange or transmission of data between devices.

b)

A number assigned to any item that is connected to the Internet.

c)

Having multiple backups to ensure reliability during cases of high usage or failure.

d)

A type of computer that forwards data across a network

7.

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

a)

0010

b)

1010

c)

0110

d)

0101

8.

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

9.

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

10.

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”

11.

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

12.

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

13.

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)
14.

Which of the following programs is most likely to benefit from the use of a heuristic?

a)

A program that calculates a student's grade based on the student's quiz and homework scores.

b)

A program that encrypts a folder of digital files

c)

A program that finds the shortest driving route between two locations on a map.

d)

A program that sorts a list of numbers in order from least to greatest.

15.

Which of the following has the greatest potential for compromising a user's personal privacy?

a)

A group of cookies stored by the user's Web Browser

b)

The IP address of the user's computer

c)

The user's email address

d)

The user's public key used for encryption

16.

when a cellular telephone user places a call. The carrier transmits the caller's voice as well as the voice of the person who is called. The encoded voices are the data of the call. In addition to transmitting the data, the carrier also stores metadata. The metadata of the call include information such as the time the call is placed and the phone numbers of both participants. For which of the following goals would it be more useful to computationally analyze the metadata instead of the data?


I. To determine if a caller frequently uses a specific word

II. To estimate the number of phone calls that will be placed next Monday between 10:30 AM and noon.

III To generate a list of criminal suspects when given the telephone number of a known criminal.

a)

I only

b)

II only

c)

II and III only

d)

I, II, and III

17.

Which of the following best describes a Distributed Denial of Service (DDoS) attack?

a)

An attempt by a country to deny its citizens access to the Internet.

b)

An attempt to deny users access to a Web site's resources by flooding the Web site with requests from multiple systems.

c)

An attempt by one user to deny service to another by posting material on a social network.

d)

An attempt by a user of the Internet to get private information from a secure database.

18.
Quantities, characters, or symbols that are the inputs and outputs of computer programs.
a)
Text
b)
Outputs
c)
Inputs
d)
Data
19.

Which of the following is least likely to indicate a phishing attack?

a)

An email from your bank asks you to call the number on your card to verify a transaction.

b)

An email from a merchant asks that you click on a link to reset your password.

c)

An email from a utility company asks you to enter your date of birth and social security number for verification purposes.

d)

An email that indicates you have won a large sum of money and asks you to enter your bank account number so that money can be transferred to you.

20.

Which of the following activities poses the greatest personal cybersecurity risk?

a)

Making a purchase at an online store that uses public key encryption to transmit credit card information.

b)

Paying a bill using a secure electronic payment system.

c)

Reserving a hotel room by emailing credit card information to the hotel.

d)

Withdrawing money from a bank using an automated teller machine.

21.

______ encryption is a method of encryption involving one key for both encryption and decryption

a)

Symmetric

b)

Asymmetric

c)

Public key

d)

SSL

22.

In public key cryptography, the sender uses the recipient's public key to encrypt a message. Which of the following is needed to decrypt the message?

a)

The sender's public key

b)

The sender's private key

c)

The recipient's public key

d)

The recipient's private key

23.

What are brute-force attacks?

a)

Attacks that use frequency analysis to break passwords

b)

Attacks that check each possible solution to break encrypted data

c)

Attacks against DNS servers to enable DDOS attacks

d)

Attacks on firewalls to gain access to a company's sensitive data

24.

What is a symmetric key used for?

a)

Sending and receiving information from the web

b)

Encrypting data

c)

Decrypting data

d)

Encrypting and decrypting data

25.

What is the most common way computer viruses are spread?

a)

By people clicking on an infected file

b)

From pop up ads

c)

Through network worms

d)

From random botnet attacks

26.

What does the s in https refer to?

a)

It's the plural of http - a more robust version of http that runs on multiple channels.

b)

s is for "secure" - a version of http that is encrypted.

c)

s is for "simple" - a simplified version of http that runs faster on modern computers

d)

s is for "standard" - to distinguish the original http from non-standard versions like httpv and httpx

27.

When someone tries to get you to give up personal information through email or a bogus website it is called a: *

a)

DDoS Attack

b)

Phishing Scam

c)

Virus

d)

SSL/TLS layer

28.

What is 20 MOD 15?

a)

0

b)

5

c)

15

d)

20

29.

What is the "key" to a Caesar Cipher that someone needs to know (or discover) to decrypt the message?

a)

A secret word only know by Caesar.

b)

The number of characters to shift each letter in the alphabet.

c)

The letter that occurs most often in the encrypted message.

d)

The day of the month that the encrypted message was sent

30.

Which of the following statements best describes the properties of public key encryption?

a)

Public key encryption is an encryption method which relies on separate keys for encrypting and decrypting information.

b)

Public key encryption is a highly secure encryption scheme that in which a single shared key is used by both the sender and receiver of the message.

c)

Public key encryption makes use of certain types of problems which are easier for humans to solve than computers.

d)

Public key encryption makes use of mathematical problems which no algorithm can be used to solve.

31.

When a computer scientist uses the term "Big Data" what do they typically mean?

a)

That a dataset is larger than 5TB which is the common "Big Data" threshold.

b)

That there is so much data it's virtually impossible to process.

c)

There is enough data that traditional data processing applications are inadequate.

d)

It implies that the findings from the data are potentially hugely important for society.

32.

How can financial transactions safely occur on the Internet?

a)

Through the use of symmetric keys

b)

Through certificates issued by Certificate Authorities (CAs) that validate the keys used

c)

Through the use of double authentication methods

d)

The the use of frequency analysis

33.

13 MOD 17= ??

a)

13

b)

4

c)

-4

d)

17

34.
Which unit is the smallest?
a)
Megabyte
b)
Kilobyte
c)
Gigabyte
d)
Terabyte
35.

Which unit is the largest?

a)

Megabyte

b)

Terabyte

c)

Gigabyte

d)

Kilobyte

36.

Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?

a)

1,000 times bigger

b)

100,000 times bigger

c)

1,000,000 times bigger

d)

1,000,000,000 times bigger

37.

Which of the following is a reason to use lossy compression?

a)

You want the compressed file to be larger than the original.

b)

You want the highest quality audio file possible, with no modifications.

c)

You want the highest quality image file possible, with no modifications.

d)

You want to save space and are not concerned if the file is the highest quality possible.

38.

a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible

a)

Lossless Compression

b)

Heuristic

c)

Lossy Compression

d)

encryption

39.

Which of the following is irreversible?

a)

lossy compression

b)

lossless compression

c)

abstraction

d)

RLI

40.

Which of the file types is an audiofile type?

a)

jpg

b)

mp3

c)

png

d)

csv

41.

An original file is 100 MB, it is compressed to 80 MB (including dictionary). What is its compression rate?

a)

90%

b)

80%

c)

20%

d)

100%

42.

How many bits are needed to represent 8 colors?

a)

8 bits

b)

24 bits

c)

1 hex digit

d)

3 bits

43.

The color widget uses 3 bytes of metadata. The first two bytes indicate the width and height of the image. The next byte indicates the number of bits that will be used to represent color. How many bits is used to represent color given the metadata (in binary) 00001000 00001000 0001001

a)

3 bits

b)

6 bits

c)

9 bits

d)

12 bits

44.

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


45.

A raw digital sound file samples a sound wave at some interval and measures the height of the wave at each point. Thus, raw sound is recorded as a list of numbers.


In very broad terms the MP3 audio compression algorithm identifies frequencies and volume levels - low and high - that are outside the range of human hearing and removes the data representing these frequencies from the original. This technique results in a smaller audio file that sounds exactly the same to the human ear.


This technique is an example of what type of compression?

a)

Lossy compression

b)

Lossless compression

c)

Fast Fourier Transform compression

d)

Tailored compression

46.

What is one important naming convention of functions?

a)

A function name should indicate how long the function takes to run.

b)

Two functions with similar behavior should be given identical names to indicate the relationship between them.

c)

A function name should be as descriptive as possible to indicate what the function does.

d)

Function names should be organized alphabetically.

e)

The function name should begin with a number that indicates the order in which it should be executed.

47.
Top Down Design is when you take a problem and break it down into smaller sub problems or smaller pieces
a)
True
b)
False
48.

Which of the following will call the function drawStar?

a)

drawStar

b)

drawStar();

c)

function drawStar (){

for(var i=0; i <5; i++) {moveForward(100); turnLeft(36):}}

d)

function drawStar;

e)

function drawStar();

49.

Why are these icons a good use of abstraction?

a)

They tell us what they mean without needing to use the name

b)

They are difficult to understand

c)

They don't explain what they are

50.

Which of the following statements describes a limitation of using a computer simulation to model a real-world object or system?

a)

Computer simulations can only be built after the real-world object or system has been created

b)

Computer simulations only run on very powerful computers that are not available to the general public

c)

Computer simulations usually make some simplifying assumptions about the real-world object or system being modeled

d)

It is difficult to change input parameters or conditions when using computer simulations