stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Nguyen, Joseph AP Exam Review Flashcards | StudBud
Explore
/
Nguyen, Joseph AP Exam Review
Nguyen, Joseph AP Exam Review
91 terms
·
StudBud Administration
·
8 plays
Practice questions for the AP CSP Exam.
Flashcards
91 cards
F
Practice quiz
P
Host live
L
Questions
91
Answers
1
Consider the following segment
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
2
Which of the following is a negative trade-off inherent in lossless compression?
Some of the data will be lost and cannot be recovered.
The file can be difficult to email and can take up lots of memory storage.
The number and size of pixels will be less.
The image quality will be less and will result in a blurry image.
3
Consider the following code segment: What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 3 and 12
All even numbers between 1 and 12
All odd numbers between 1 and 12
4
What could a single binary value represent?
Time
Temperature in degrees Celsius
Volume on a radio
If a light is on or off
5
Consider the following question
The files used lossless compression so it could be small enough to email
The files used lossy compression so it could be small enough to be emailed
When sending pictures, the file was broken down into packets then assembled
When you email a picture, some of the picture data will be lost in process
6
Which of the following is true about data compression?
Lossless data compression is the best compression under all conditions.
Data compression can be used to reduce the size of a file for storage.
Data compression can be used for pictures and video only.
Lossy compression cannot be used when sending pictures.
7
Consider the code segment below.
What is your name? Hello Karel
"What is your name?"; new line; "Hello"; new line; "Karel"
"What is your name?"; new line; "Hello Karel"
Hello Karel
8
Consider the following question
1.75 seconds
571 seconds
57.1 seconds
175 seconds
9
Consider the following question
Step 5, Step 1, Step 2,Step 4, Step 6, Step 3
Step 1, Step 5, Step 3, Step 6, Step 2, Step 4
Step 5, Step 1, Step 6, Step 3, Step 2, Step 4
Step 1, Step 5, Step 6, Step 3, Step 4, Step 2
10
Which of the following illustrate ways that the internet facilitates collaboration
I only
I, II, and III
I and III only
II and III only
11
Consider the following question
DNS
FTP
HTTP
TCP
12
Consider the following question
Runtime error
Logical error
Syntax error
No error; the program works as intended
13
Which of the following types of components is necessary for cybersecurity?
I, II, and III
I only
III only
I and II only
14
Consider the following question
import java.util.concurrent.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
import java.ThreadLocalRandom
import java.util.function.ThreadLocalRandom
15
Consider the following procedure, mystery( x, y ). What is returned by mystery (1, 2)?
2
10
4
8
16
Convert 88DEC to a binary number
1000001BIN
1010101BIN
1011000BIN
1111000BIN
17
How much bytes is 1 kilobyte?
100
10
1
1,000
18
Which of the following is NOT metadata for the picture?
The picture of the dog
The memory space taken up by the picture
The location where the picture was taken
The time the picture was taken
19
Which of the following is NOT an example of using citizen science as a possible solution?
Calculating PSAT scores for a school district
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of fireflies during the summer months
Behavior of the mysterious and wonderful jellyfish on the beach or water
20
Consider the following question
Programming the most elegant code
Direct observations
User testing
Collecting data through surveys
21
Metadata is data about data. Read the following statements about metadata types. Which of the statements below are true?
II, III, and IV only
I, II, and IV only
All of the above
I only
22
Consider the following question
temp = a
b = a
temp = b
b = temp
23
cube(n) is meant to multiply a number by itself three times. What is returned by cube(cube(2))?
512
8
128
64
24
Which of the codes below will correctly swap the frog with the bear?
animal[1] = animal[2]animal[2] = animal[1]
animal[3] = animal[1]animal[1] = animal[3]
temp = animal[1]animal[1] = animal[2]animal[2] = temp
temp = animal[1]animal[1] = animal[3]animal[3] = temp
25
What is displayed after running the algorithm below?
12
145
133
43
26
What type error that's hard to see?
Overflow error
Runtime error
Syntax error
Logical error
27
Which of the following is the MOST likely data privacy concern of the upgraded game?
Recording whether the player was speeding when driving to a location.
How many locations the player visited
How much time a person spent playing the game
The player’s score
28
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
12 12 12
24 24 24
6 12 24
12 24 24
29
Find the error in the following low-level programming code.
The 17th 1 needs to be changed to a 0.
The 84th digit should be a 1.
The 34th 0 should be a 1.
This is too difficult. An upper-level language would help.
30
Which of the following can be represented by a single binary number?
What is your puppy's name?
What is the speed of a puppy chasing a squirrel?
What is the position of an object in a grid of squares showing where it is.
Do you have a puppy?
31
Consider the following question
Bubble sort
Binary search
Insertion sort
Linear search
32
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (right)
NOT CAN_MOVE (left)
NOT CAN_M0VE (forward)
CAN_MOVE (north)
33
The following picture was taken by a smartphone. Which of the following is NOT metadata?
The date the photo was taken
The geographic location where the picture was taken
The filename
The Red, Green, and Blue values of the top left pixel
34
What is the following program returning?
20
37
25
27
35
What is the minimum number of lines that must be cut to isolate F completely?
8
6
0
4
36
What will the following code segment display?
1
30
22
10
37
Why is IPv6 better than IPv4?
IPv6 is a greater number than IPv4.
IPv6 is more compatible than IPv4.
IPv4 is more compatible than IPv6.
IPv6 is not better than IPv4.
38
Consider the following question
Graphs can show trends that might not be easily seen with raw data.
Graphs can be easily placed into a slideshow/document, while tables can't.
Graphs are able to show all of the detail necessary to understand data.
Graphs are harder to read and interpret at a glance.
39
In what order will the numbers appear after running the algorithm below?
5, 6, −5, 6
5, 6, 3, 3
5, 7, 4, 3.5
5, 7, −6, 7
40
Consider the following question
numbers[3, 5, 11, 6]
numbers[1, 1, 35, 6]
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
41
Which best describes the role of TCP?
The set of rules for the path packets taken on the fault-tolerant internet
The foundation of data communication for the World Wide Web
A protocol for encrypting and decrypting data transferring on the internet
Assigning rules and a label for each device connected to the internet.
42
What is displayed after the following algorithm is run?
100
32
50
132
43
Which of the following is a cause of the digital divide?
All of the above
Lack of access to technology due to location
Lack of access to the technology due to affordability
Lack of knowledge on how to use technology
44
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?
People are not watching where they are walking and are getting injured.
Players are becoming more cultured by visiting artworks.
People are exercising.
Players play the game in their spare time.
45
What will the following program display?
The program is an infinite loop.
OXXOO
OXXOXXOXX
OOOXX
46
Consider the following question
2 ^ 2 as many IP addresses
Twice as many IP addresses
96 as many IP addresses
2 ^ 96 as many addresses
47
Consider the following code segment, which uses the variables a, b, and c.
3 11 3
11 3 8
8 4 6
3 3 6
48
Consider the following question
C
p
.
K
49
When should a heuristic algorithm be used?
When finding the lifetime batting average of Mookie Wilson
When deciding which files could have been exposed to a virus or not.
When calculating the average score for the national SAT test
When finding the quickest way to drive from Orlando, FL, to Cold Foot, AL
50
What does the algorithm display?
5
4
7
3
51
Which of the following test cases will NOT find the maximum number in the list?
list1[0, 0, 0, 0]
list1[−23, −67, −3, −7]
list1[23, 67, 3]
list1[4]
52
Consider the following question
All of the above
I, III, and IV only
I, II, III, and V only
II, IV, and V only
53
Consider the following question
IF(number = true AND randomNumber = drawing)
IF(number = randomNumber)
IF(number = true OR randomNumber = true)
IF(number ≠ randomNumber)
54
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x >= 6
x >= 9
x > 10
55
Bonus: When and where are you taking the AP CSP Exam?
Monday, May 8, 2023; 11:30 a.m. Central Time; Aux Gym, Cypress Ranch HS
Monday, May 8, 2023; 11:30 a.m. Central Time; 3rd Gym, Cypress Ranch HS
Monday, May 8, 2023; 11:30 a.m. Central Time; 3rd Gym
Monday, May 8, 2023; 11:30 p.m. Central Time; 3rd Gym, Cypress Ranch HS
56
What will the following code segment display?
6
Nothing will be displayed due to an error.
11
3
57
The question below uses a simple programming language, with the following instructions.
The fixed number of bits used to show integers limits the range of values.
The value of the product will always be 0.
The multiple levels of abstraction used oversimplified the coded.
The fixed number of bits used to show real #'s limits the range of value
58
What is the minimum number of binary digits needed to store the number 56?
1
3
5
6
59
Consider the following question
( list1[0] = list1[1] )
( list1[1] = list1[LENGTH(list1)] )
( list1 = list1 )
( list1[0] = list1[LENGTH(list1) – 1] )
60
What percentage of the time will the program display an even number?
10%
50%
40%
20%
61
Consider the following question
moveAndSpin(0, 1); moveAndSpin(6, 3); moveAndSpin(4, 0)
moveAndSpin(4, 1); moveAndSpin(6, 1)
moveAndSpin(7, 3)
moveAndSpin(0, 7)
62
Which of the following statements are true about high-level programming languages?
A high-level programming language often uses natural language elements.
A high-level programming language does not ensure program reliability.
A high-level programming language must be used to execute commands.
A high-level programming language doesn't allow for code to be re-used.
63
Consider the following question
128.198.232.65
54.116.188.246
92.11.198.113
174.260.45.144
64
Which of the following is a true statement about data transmitted over the internet?
The (DNS) has been challenged by the Digital Millennium Copyright Act.
Packets are received in the same order that they are sent.
All data traveling over the internet is in binary.
Redundancy in the design of the internet is overseen by large companies.
65
What binary number is equal to 10001BIN+3DEC?
10100BIN
11100BIN
10011BIN
11110BIN
66
What is the code segment displaying?
68
17
0
34
67
What are two aspects of efficiency?
execution time and length of code
memory usage and length of code
execution time and memory usage
wall clock time and CPU time
68
Which of the following statements are true about undecidable problems in computer science?
II and III
I, II, and III
I and II
I only
69
What is the code below displaying?
3, 6, 9, 12, 15
Nothing will be displayed
2, 4, 6, 8, 10, 12, 14
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
70
Binary search can find an item in an unsorted list.
True
False
71
Which of the following is true about redundancy on the internet?
I, II, and III
I and II only
I only
II and III only
72
How many lines need to be cut to completely isolate computer E from computer C?
6
3
8
0
73
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
0
1
100
8
74
Why does program code have to be run through a compiler?
Program code must be translated into a language the computer understands.
Program code must be debugged by the compiler before it can ever run.
Program code is write-only until it is run through a compiler.
It doesn’t, as the new program could be run directly from the code.
75
Consider the following question
Packets are received in the order that they are sent.
Packets are sent by the quickest path possible in the correct order.
Packets are sent in multiple paths and can be received out of order.
All of the above.
76
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1,000
2,000
1
11
77
The Caesar cipher is an example of what type of encryption?
Symmetric encryption
Public key encryption
No key encryption
Home key encryption
78
Which of the following are benefits to having information be easily accessible and changeable?
I, II, and III
II and III only
I and II only
I only
79
Consider the following question
I, Il, III, IV
I, IV, II, III
I, III, IV, II
III, I, II, IV
80
Which of the following does NOT need to be considered when determining the credibility of a source?
Author’s reputation and credentials
Sponsorship of the article or publisher
Use of persuasive techniques within the source
Publisher’s reputation and credentials
81
Which of the following considerations is likely to affect the ability of the program to process large data sets?
The order of the data put into the data set
How much memory the program requires to run
The amount of program documentation that should be minimized
How many program statements the program contains
82
Consider the following question
[1, 6, −4]
[ ]
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
83
Why are internet protocols used?
They're set of rules to ensure the internet can work and transmit data.
They don't make the internet scalable and encourage growth.
They're needed to slow the growth of the internet.
They're specific to the hardware attached to the internet.
84
Consider the following question
Lossy transformation
Frequency transformation
Lossless transformation
Addition transformation
85
Why is it important to find an efficient solution to a problem?
An efficient solution makes it harder to copy an algorithm.
An efficient solution uses more resources to verify the results as correct.
An efficient solution can always be solved in a reasonable amount of time.
An efficient solution can make it easier to analyze larger data sets.
86
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
9
7
2
8
87
What will be the output of the following program?
7 5 9
9 5 7
14
14 6
88
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a AND (a AND b)
b AND (a AND b)
a OR b
NOT (a AND b)
89
What will the program segment display?
3
34
2
99
90
What would be a good use of constants when initializing variables at the beginning of a program?
I and III only
I, II, and III
II and III only
I and II only
91
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always false
Always true
True when either A or B is true