wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AP CSP exam review

Total questions: 67

Worksheet time: 1hrs 7mins

Name
Class
Date
1.
What does HTTP stand for?
a)
Hyper Text Transfer Protocol
b)
Nothing, it's supposed to be HTML
c)
Head To This Page
d)
Hyper Tense Tall Penguins
2.

An Internet attack that causes a server to crash by making repeated requests to the same IP address:

a)

DDoS (Distributed Denial of Service)

b)

Cache Poisoning

c)

DNS (Domain Name System) Hijacking

d)

Phishing

3.
According to the domain name system (DNS), which of the following is a subdomain of the domain code.org?
a)
educate.code.org
b)
code.com
c)
code.org/apcsp/lesson10
d)
code.co.uk
4.
The world is currently in a transition to using IPv6, a newer version of the IP protocol that uses 128-bit addresses instead of 32-bit addresses used by IPv4. What is the main problem that IPv6 was created to solve?
a)
IPv6 will allow problems with IPv4's address hierarchy to be resolved
b)
32-bit addresses could not ensure that every internet-connected device can receive a unique IP address
c)
32-bit addresses could not accommodate the increased size and amount of data traveling on the Internet as it has grown in popularity
d)
IPv4 proved unreliable in some cases where network redundancy could not be ensured
5.
Given the following network diagram, what is the minimum number of connections that must be broken or removed before computer E can no longer communicate with computer B?
a)
1
b)
2
c)
3
d)
4
6.
Which of the following statements about IP addresses is NOT true?
a)
Each IP address has a network previx and may have various subnet and interface IDs
b)
Each of the octets in an address can be any number between 0 and 255
c)
There are no rules or guidelines for creating a new IP address
d)
IP addresses may have prefixes to identify which routers or subnets the address belongs to
7.
A ____ HTTP request is used when the user requests information, but does not enter anything into the page.
a)
Get
b)
Post
c)
Send
d)
Fetch
8.
Andrew uses an application to track HOW LONG it takes a packet to travel from his computer to a Wikipedia server. Which of the following is he measuring?
a)
Bandwidth
b)
Latency
c)
Number of packets
d)
Router sp
9.
Which of the following best describes the basic idea of fault tolerance?
a)
A system that never fails
b)
If part of the system fails, the operation continues without interruption
c)
A program that does not allow inputs out of a range given by a programmer
d)
A program that does not allow loss of precision
10.
This is used to resolve host names to IP addresses
a)
IP address
b)
subnet mask
c)
default gateway
d)
DNS server
11.
Which unit is the smallest?
a)
Megabyte
b)
Kilobyte
c)
Gigabyte
d)
Terabyte
12.

An artist makes an RGB raster image in which each pixel color is encoded with 12-bits --- 4 bits each for red, green and blue.Which of the following correctly shows the hexadecimal value for Red as a 12-bit representation.

a)

F00

b)

00F

c)

FF00

d)

FF0000

13.

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.

14.

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

15.

Which of the following is irreversible?

a)

lossy compression

b)

lossless compression

c)

abstraction

d)

RLI

16.

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%

17.

How many bits are needed to represent 8 colors?

a)

8 bits

b)

24 bits

c)

1 hex digit

d)

3 bits

18.

How many bits are needed to represent a 3 x 3 black and white image (exclude metadata)

a)

3 bits

b)

6 bits

c)

9 bits

d)

9 x 24 bits

19.

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


20.

What two numbers do we use in binary?

a)

-1 & 0

b)

2 & 1

c)

1 & 0

d)

4 & 0

21.

What base is binary in?

a)

2

b)

4

c)

1

d)

7

22.

What color is represented by (0, 150, 0)?

a)

Blue

b)

Green

c)

Yellow

d)

Red

23.

What is displayed to the console log?

a)

$10

b)

$ 10

c)

$10.00

d)

error

24.

What gets logged to the console?

a)

[1, 2, 3, 4, 5]

b)

1

c)

myList

d)

error

25.

What gets logged to the console?

a)

[1, 2, 3, 4, 5]

b)

1

c)

myList

d)

2

26.

a)

True

b)

False

27.

For which of the following lists can a binary search be used to search for an item in the list?

a)

I only

b)

III only

c)

I and III only

d)

I, II, and III

28.
What does Protocol mean?
a)
Security
b)
Rules
c)
Orders
d)
Services
29.
Which of these is NOT part of the TCP header?
a)
Packet Number
b)
Sender IP Address
c)
Size of Packet
d)
Name of File
30.

gathering and measuring information on targeted variables in order to answer questions and evaluate outcomes

a)

data collection

b)

collaboration

c)

unstructured data

d)

big data

31.

raw data with no connections and/or relationships among data detected - usually requires large amounts of storage

a)

data collection

b)

structured data

c)

unstructured data

d)

cloud computing

32.

the retention and retrieval of data

a)

data storage

b)

big data

c)

structured data

d)

relational database

33.
Images can contain a geographical location of where the picture was taken. This is stored in a special area of an image file called:
a)
Metadata
b)
File name.
c)
Compression area.
d)
Alpha-channel.
34.
The following is true about metadata:
a)
It is data about data.
b)
It is corrupted data.
c)
It significantly increases file sizes.
35.
Metadata is used in the following files:
a)
All of these.
b)
Images
c)
MP3 files
d)
Webpages
36.

The main information stored is referred to:

a)

data

b)

metadata

37.

Extra information about the main information stored is referred to:

a)

data

b)

metadata

38.

DATA or Metadata?

Example: an image file


the width of the picture in pixels

a)

data

b)

metadata

39.

DATA or Metadata?

Example: an image file


the geo Tag that stores where the picture was taken

a)

data

b)

metadata

40.

Metadata can be used to organize and search for images.

a)

True

b)

False

41.

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

42.

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.

43.

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

a)

Symmetric

b)

Asymmetric

c)

Public key

d)

SSL

44.

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

45.

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

46.

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

47.

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

48.

Assume that the two variables age and day have been initialized with the values shown.

var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.

(age > 10) && (age < 20)

a)

true

b)

false

49.

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


!(age > 10)

a)

true

b)

false

50.

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


!((age == 16) && !(day == "Monday"))

a)

true

b)

false

51.

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


((age == 16) && (day == "Monday")) || (day == "Tuesday")

a)

true

b)

false

52.

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


((age > 10) && ((age + 5) > 20))

a)

true

b)

false

53.

What are smart buildings and smart transportation, along with other sensors to help people, considered?

a)

Sensor networks

b)

Assistive technologies

c)

Instructive technologies

d)

Scalable solutions

54.

What is an example of sharing images and allowing individuals to scan them for certain features?

a)

Heuristics

b)

Moore's law

c)

Citizen science

d)

Contaminated research

55.

What is the name for programming code that is available to anyone to use or modify?

a)

Licensed software

b)

Open source software

c)

Compiled software

d)

Executable only software

56.

People trading personal information for perks from companies is an example of what

a)

The use of proxy servers

b)

privacy concerns

c)

legal issues

d)

Authentication exposure

57.

Determining the credibility of online sources requires evaluating what credentials?

a)

Author

b)

Publisher

c)

Site owner

d)

All of the above

58.

A business's website tracks items that are viewed by visitors to its site. Which question cannot be answered by tracking this data?

a)

Which items will sell during each season in differentparts of the world

b)

The trending colors that could be popular in the next year

c)

The income range of prospective customers

d)

How many of each item to produce

59.

What will the following algorithm display?
\leftarrow   13
\leftarrow   17
\leftarrow   a + 1
\leftarrow   a/7
DISPLAY(c)
DISPLAY(a)
DISPLAY(b)

a)

2, 14, 17

b)

13, 17, 5

c)

2, 12, 2

d)

14, 17, 2

60.

What will the following algorithm display?

a ← 11

a ← a + 35

a ← a + 6

a ← a MOD 2

a ← a x b

DISPLAY (a)

a)

0

b)

42

c)

84

d)

126

61.

What will the following display?

a ← "Milk"

a ← "Cookies Soda"

a ← "Chips"

b ← a + "put them in a bag so they stay crisp"

a)

Milk

b)

Milk Cookies Soda

c)

Put them in a bag so they crisp

d)

Milk Cookies Soda Chips put them in a bag so they stay crisp

62.

What is the value displayed after the program is run?
\leftarrow  8
\leftarrow  3
\leftarrow  2
\leftarrow  b * c
\leftarrow  c+4
display "a"
display (c)

a)

a  8

b)

a  6

c)

8  6

d)

16  4

63.

What will the following algorithm display?
\leftarrow  26 MOD 2

a)

26

b)

13

c)

0

d)

1

64.

What will the following algorithm display?

a ←26 MOD 3

b ←7 MOD a

display (b)

a)

26

b)

13

c)

0

d)

1

65.

What is the percentage that this algorithm displays true?

DISPLAY(random(5,9) = 6)

a)

10

b)

20

c)

60

d)

100

66.

What is the percentage that this algorithm displays true?
DISPLAY(RANDOM(5,9) \le   9)

a)

0

b)

20

c)

60

d)

100

67.

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 above.


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

a)

N

b)

P

c)

T

d)

W