NEW
Font size
WorksheetsAP CSP exam review
Total questions: 67
Worksheet time: 1hrs 7mins
An Internet attack that causes a server to crash by making repeated requests to the same IP address:
DDoS (Distributed Denial of Service)
Cache Poisoning
DNS (Domain Name System) Hijacking
Phishing
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.
F00
00F
FF00
FF0000
Which of the following is a reason to use lossy compression?
You want the compressed file to be larger than the original.
You want the highest quality audio file possible, with no modifications.
You want the highest quality image file possible, with no modifications.
You want to save space and are not concerned if the file is the highest quality possible.
a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible
Lossless Compression
Heuristic
Lossy Compression
encryption
Which of the following is irreversible?
lossy compression
lossless compression
abstraction
RLI
An original file is 100 MB, it is compressed to 80 MB (including dictionary). What is its compression rate?
90%
80%
20%
100%
How many bits are needed to represent 8 colors?
8 bits
24 bits
1 hex digit
3 bits
How many bits are needed to represent a 3 x 3 black and white image (exclude metadata)
3 bits
6 bits
9 bits
9 x 24 bits
Consider the following three binary numbers:
01010
010000
1110
Which of the following lists the numbers in order from least to greatest?
010000
1110
01010
01010
1110
010000
01010
010000
1110
1110
01010
010000
What two numbers do we use in binary?
-1 & 0
2 & 1
1 & 0
4 & 0
What base is binary in?
2
4
1
7
What color is represented by (0, 150, 0)?
Blue
Green
Yellow
Red
What is displayed to the console log?
$10
$ 10
$10.00
error
What gets logged to the console?
[1, 2, 3, 4, 5]
1
myList
error
What gets logged to the console?
[1, 2, 3, 4, 5]
1
myList
2
True
False
For which of the following lists can a binary search be used to search for an item in the list?
I only
III only
I and III only
I, II, and III
gathering and measuring information on targeted variables in order to answer questions and evaluate outcomes
data collection
collaboration
unstructured data
big data
raw data with no connections and/or relationships among data detected - usually requires large amounts of storage
data collection
structured data
unstructured data
cloud computing
the retention and retrieval of data
data storage
big data
structured data
relational database
The main information stored is referred to:
data
metadata
Extra information about the main information stored is referred to:
data
metadata
DATA or Metadata?
Example: an image file
the width of the picture in pixels
data
metadata
DATA or Metadata?
Example: an image file
the geo Tag that stores where the picture was taken
data
metadata
Metadata can be used to organize and search for images.
True
False
Which of the following has the greatest potential for compromising a user's personal privacy?
A group of cookies stored by the user's Web Browser
The IP address of the user's computer
The user's email address
The user's public key used for encryption
Which of the following is least likely to indicate a phishing attack?
An email from your bank asks you to call the number on your card to verify a transaction.
An email from a merchant asks that you click on a link to reset your password.
An email from a utility company asks you to enter your date of birth and social security number for verification purposes.
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.
______ encryption is a method of encryption involving one key for both encryption and decryption
Symmetric
Asymmetric
Public key
SSL
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?
The sender's public key
The sender's private key
The recipient's public key
The recipient's private key
What is the most common way computer viruses are spread?
By people clicking on an infected file
From pop up ads
Through network worms
From random botnet attacks
What is the "key" to a Caesar Cipher that someone needs to know (or discover) to decrypt the message?
A secret word only know by Caesar.
The number of characters to shift each letter in the alphabet.
The letter that occurs most often in the encrypted message.
The day of the month that the encrypted message was sent
How can financial transactions safely occur on the Internet?
Through the use of symmetric keys
Through certificates issued by Certificate Authorities (CAs) that validate the keys used
Through the use of double authentication methods
The the use of frequency analysis
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)
true
false
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)
true
false
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"))
true
false
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")
true
false
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))
true
false
What are smart buildings and smart transportation, along with other sensors to help people, considered?
Sensor networks
Assistive technologies
Instructive technologies
Scalable solutions
What is an example of sharing images and allowing individuals to scan them for certain features?
Heuristics
Moore's law
Citizen science
Contaminated research
What is the name for programming code that is available to anyone to use or modify?
Licensed software
Open source software
Compiled software
Executable only software
People trading personal information for perks from companies is an example of what
The use of proxy servers
privacy concerns
legal issues
Authentication exposure
Determining the credibility of online sources requires evaluating what credentials?
Author
Publisher
Site owner
All of the above
A business's website tracks items that are viewed by visitors to its site. Which question cannot be answered by tracking this data?
Which items will sell during each season in differentparts of the world
The trending colors that could be popular in the next year
The income range of prospective customers
How many of each item to produce
What will the following algorithm display?
a ← 13
b ← 17
a ← a + 1
c ← a/7
DISPLAY(c)
DISPLAY(a)
DISPLAY(b)
2, 14, 17
13, 17, 5
2, 12, 2
14, 17, 2
What will the following algorithm display?
a ← 11
a ← a + 35
a ← a + 6
a ← a MOD 2
a ← a x b
DISPLAY (a)
0
42
84
126
What will the following display?
a ← "Milk"
a ← "Cookies Soda"
a ← "Chips"
b ← a + "put them in a bag so they stay crisp"
Milk
Milk Cookies Soda
Put them in a bag so they crisp
Milk Cookies Soda Chips put them in a bag so they stay crisp
What is the value displayed after the program is run?
a ← 8
b ← 3
c ← 2
a ← b * c
c ← c+4
display "a"
display (c)
a 8
a 6
8 6
16 4
What will the following algorithm display?
a ← 26 MOD 2
26
13
0
1
What will the following algorithm display?
a ←26 MOD 3
b ←7 MOD a
display (b)
26
13
0
1
What is the percentage that this algorithm displays true?
DISPLAY(random(5,9) = 6)
10
20
60
100
What is the percentage that this algorithm displays true?
DISPLAY(RANDOM(5,9) ≤ 9)
0
20
60
100
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?
N
P
T
W
