stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Nguyen, Parson AP exam review Flashcards | StudBud
Explore
/
Nguyen, Parson AP exam review
Nguyen, Parson AP exam review
100 terms
·
StudBud Administration
·
4 plays
A review for CSP (Computer Science Principles) specifically AP exams
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
What could a single binary value represent?
Volume on a radio
If a light is on or off
Time
Temperature in degrees Celsius
2
What will the program above display?
2 7
4 8
2 8
3 7
3
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (north)
NOT CAN_MOVE (left)
NOT CAN_M0VE (forward)
CAN_MOVE (right)
4
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 much time a person spent playing the game
The player’s score
How many locations the player visited
5
Read the question below:
I only
I, II, III, and IV
II, III, and IV
II and IV
6
What should replace
<missing code>
in the following algorithm?
IF(number = randomNumber)
IF(number = true AND randomNumber = drawing)
IF(number ≠ randomNumber)
IF(number = true OR randomNumber = true)
7
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
GPS location
Age of the player
Event sensing; an event would be the user pushing a button or screen
Picture of the player
8
Sort the following by levels of abstraction, from lowest to highest:
I, IV, II, III
I, IV, III, II
I, III, IV, II
I, II, III, IV
9
What would be a good use of constants when initializing variables at the beginning of a program?
I and III only
I and II only
II and III only
I, II, and III
10
Which of the following test cases will NOT find the maximum number in the list?
list1[4]
list1[−23, −67, −3, −7]
list1[23, 67, 3]
list1[0, 0, 0, 0]
11
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 number and size of pixels will be less.
The file can be difficult to email and can take up lots of memory storage.
The image quality will be less and will result in a blurry image.
12
What is displayed as a result of executing the following code segment?
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Moose Noodles Novack Benji
Waffle Moose Noodles Novack Benji
13
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a AND b)
NOT(a OR a)
NOT b
a OR b
14
What will the following code segment display?
9 10 7 4 1
Nothing will be displayed due to the error index out of bounds.
10
1 4 7 10 9
15
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 can make it easier to analyze larger data sets.
An efficient solution uses more computer resources(the results are correct)
An efficient solution can always be solved in a reasonable amount of time.
16
In what order will the numbers appear after running the algorithm below?
5, 7, 4, 3.5
5, 6, 3, 3
5, 6, −5, 6
5, 7, −6, 7
17
Which of the following is true of effective collaboration?
All of the above
I, III, and IV only
I, II, III, and V only
II, IV, and V only
18
Answer the question below: What will be the values of x and y after this code segment executes?
x is 30, y is 40
x is 20, y is 20
x is 40, y is 30
x is 40, y is 40
19
Which of the following is true about redundancy on the internet?
I only
I, II, and III
II and III only
I and II only
20
If a does not equal b, what error has occurred?
a will equal b on all computers
Overflow error
Roundoff error
Hexadecimal conversion error
21
Which of the following is
NOT
metadata?
The geographic location where the picture was taken
The filename
The date the photo was taken
The Red, Green, and Blue values of the top left pixel
22
What will be displayed by
mystery( 3, myList)
?
10 8 7 5 4 2 1
10 8 7 5 4 2 1 0
9 6 3 0
9 6 3
23
What are some possible outcomes of this exploration?
I, II, and III
II and III
I and II
I and III
24
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(250, 1000) < 251
RANDOM(1, 4) < 2
RANDOM(1, 2) > 1
RANDOM(5, 8) > 7
25
Which of the following statements are true about undecidable problems in computer science?
I, II, and III
I only
I and II
II and III
26
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Internet Protocol
JavaScript Coding Protocol
Hypertext Transfer Protocol
Simple Mail Transfer Protocol
27
Which of the statments below are true?
I only
All of the above
II, III, and IV only
I, II, and IV only
28
What type of error did the below procedure suffer from?
Syntax error
Runtime error
Logical error
No error. The program works as intended
29
Which of the above, represented in binary as a byte, contains the most zeros?
K
p
C
.
30
What will the following program display?
12 12 12
24 24 24
12 24 24
6 12 24
31
What will the following code segment display?
6
3
11
Nothing will be displayed due to an error.
32
Select an answer (there are 2 correct answers).
Step 1, Step 5, Step 6, Step 3, Step 4, Step 2
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
33
What is an example of a way that a “smart grid” could assist with human capabilities?
The grid could prevent blackouts altogether
The grid could control the temperature of an A/C or a heating unit directly
The grid can distribute power efficiently, ensuring all users can use power
The grid could ensure that all computers on it are properly updated
34
What will the following algorithm display after running the code below?
3
2
4
1
35
What is displayed after running the algorithm below?
12
145
43
133
36
What will the program segment display?
99
2
34
3
37
Which of the following can be represented by a single binary digit?
Light on / light off
Date
Time
Geographic location
38
What type of error did the procedure suffer from?
Syntax error
Logical error
No error; the program works as intended
Runtime error
39
What will the following code segment display?
11
3
Nothing will be displayed due to an error.
6
40
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Use of persuasive techniques within the source
Author’s reputation and credentials
Sponsorship of the article or publisher
41
Which of the following is a cause of the digital divide?
Lack of access to the technology due to affordability
All of the above
Lack of knowledge on how to use technology
Lack of access to technology due to location
42
What type of transformation is the photo-editing software using?
Frequency transformation
Lossless transformation
Addition transformation
Lossy transformation
43
What is the following program returning?
27
25
20
37
44
Read the question below (If you can't read, zoom in):
I only
Neither
I and II
II only
45
What will be the output of the following program?
7 5 9
14
9 5 7
14 6
46
Which of the following test cases will return the correct average using the above procedure?
numbers[3, 5, 11, 6]
numbers[11, 35, 6]
numbers[1, 1, 35, 6]
numbers[0, 1, 35, 6]
47
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a OR b
NOT (a AND b)
a AND (a AND b)
b AND (a AND b)
48
What is displayed because of executing the code segment?
3 9
1 5 7
9
1 3 5 7 9
49
What is displayed after the following algorithm is run?
132
32
100
50
50
What is displayed as a result of executing the code segment?
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
Dog Cat Fish
51
Answer the question below: Which of the following is
LEAST
likely to be included with the game?
Location of high-crime areas that should be avoided
Location of highly trafficked roads and bridges
Information about what types of mobile devices can be used
What protocols the mobile device uses to connect to the internet
52
Read the question below:
computer computer computer computer computer
cmptr cmptr cmptr
computer computer computer
cmptr cmptr cmptr cmptr cmptr
53
For the following data structure, which search algorithm would work as intended to find the value 35?
Insertion sort
Binary search
Linear search
Bubble sort
54
Bill has been defrauded and is a victim of which e-mail scam?
Phishing
Spearing
Denial of Service
Social Engineering
55
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
2
8
9
7
56
Which of the following statements is
NOT
correct:
Logic gates are modeled by Boolean functions
Hardware is the lowest level of abstraction
Binary data is processed by physical layers of computing hardware
Logic gates are used to perform operations such as addition and subtraction
57
Identify the best sequence of steps she should take to select a plan.
I, Il, III, IV
I, IV, II, III
III, I, II, IV
I, III, IV, II
58
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
1
100
0
59
Which of the following statements are true about high-level programming languages? (Two correct answers)
A high-level programming language allows for code to be re-used.
A high-level programming language does not ensure program reliability.
A high-level programming language often uses natural language elements.
A high-level programming language must execute commands (adding/multiply)
60
Which of the following is NOT metadata for the picture?
The picture of the dog
The time the picture was taken
The location where the picture was taken
The memory space taken up by the picture
61
Which of the following is least likely to receive targeted advertisements?
Individuals using the web browser with the Do Not Track setting engaged
Users visit websites with a digital certificate that block advertisements
Individuals using the web browser without the Do Not Track option
Users with strong passwords and multifactor authentication
62
Answer the question below: Which ofthe following will correctly replace /*missing code */ ?
NOT CAN_MOVE(forward)
CAN_MOVE (right)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_M0VE (right)
63
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x < 1
x < 9
x <= 1
64
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?
Players are becoming more cultured by visiting artworks.
People are not watching where they are walking and are getting injured.
People are exercising.
Players play the game in their spare time.
65
Using the partial hierarchy shown above, which of the following commands would properly import ThreadLocalRandom?
import java.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
import java.util.function.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
66
The following program is intended to display the string 789. What type of error will the following procedure cause?
Logic error
Runtime error
No error
Syntax error
67
Which of the following best describes the type of site that Ripley is using?
Newsgroup
RSS Feed
Wiki
Webopedia
68
Why does program code have to be run through a compiler?
Program code must be debugged by the compiler before it can ever run.
Program code must be translated into a language the computer understands.
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.
69
What is the minimum number of binary digits needed to store the number 56?
3
1
6
5
70
What is the minimum number of lines that must be cut to isolate F completely?
6
8
4
0
71
What line of code can replace <missing code> so the algorithm will work as intended?
list1 = 13
item = 13
item ≠ 13
list1 ≠ 13
72
Consider the following procedure,
mystery( x, y )
. What is returned by
mystery (1, 2)
?
2
8
10
4
73
Read the question carefully below:
User name
Location of landmarks used in the game.
Speed traveling
GPS location of user
74
In this system, what would be the binary representation of the word dog?
00000100 00001111 00000111
00000111 00001111 00000100
00000010 00001111 00000111
00000100 00001001 00000111
75
Read the question below:
II, IV, and V only
All of the above
I, II, and IV only
I, II, III, and IV only
76
Read the question below:
I only
II only
Neither I nor II
Both I and II
77
How many lines need to be cut to completely isolate computer E from computer C?
6
8
0
3
78
When sending pictures from your phone to your friend’s phone using a mobile application, which of the following is true?
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.
Packets are received in the order that they are sent.
All of the above.
79
Which of the following best approximates the minimum possible time to run all three processes in series?
10 seconds
8 seconds
20 seconds
38 seconds
80
What type of algorithm would be best used for fraud detection?
Brute force algorithm
Optimization algorithm
Searching algorithm
Heuristic algorithm
81
What is displayed by running the code segment?
3 3 6
11 3 8
8 4 6
3 11 3
82
Which of the following lists is
NOT
a candidate for a binary search?
A list of students in order of height
A list of numbers from smallest to largest
A list of words from a poem about sunshine in the order they appear
A list of words in a dictionary
83
What will the above program display?
3 8 0
Nothing due to an infinite loop
2 8 14
4 8 8
84
What percentage of the time will the program display an even number?
40%
50%
10%
20%
85
Which of the following are benefits to having information be easily accessible and changeable?
I and II only
II and III only
I only
I, II, and III
86
Answer the question below: Which of the following must be true about the code that she writes?
Both selection and looping are necessary.
Looping is necessary, but selection is not.
Selection is necessary, but looping is not.
Neither selection nor looping are necessary.
87
Which of the choices below properly identify these concepts?
Lexicographic and Asymmetric
Hash Codes and Key Transfers
Symmetric and Steganography
Asymmetric and Symmetric
88
In the following flowchart, what is the value of RESULT?
Always false
Always true
True when both A and B are true
True when either A or B are true
89
What does the algorithm display?
3
5
7
4
90
A lawyer is accessing an online database of crimes in a certain radius of the city center. The database contains:
Neither Algorithm I nor Algorithm II
Algorithm I only
Both Algorithm I and Algorithm II
Algorithm II only
91
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x > 10
x >= 9
x >= 6
x < 6
92
Which of the following best approximates the minimum possible time to run all five processes in parallel?
11 seconds
9 seconds
15 seconds
13 seconds
93
What type of error did the procedure below suffer from?
No error. The program works as intended.
Syntax error
Runtime error
Logical error
94
What will the following code segment display?
10
30
1
22
95
What is the appropriate name for the procedure?
CAN_ESCAPE()
ESCAPE()
IS_TRAPPED()
SPIN()
96
An algorithm has nn number of steps. Which of the following would be considered a reasonable number of steps?
3^n
100n^4
n!
4^n+8n^2
97
What does the following algorithm display?
It always displays “False.”
When B is false, the algorithm displays “False.”
When A is false, the algorithm displays “False.”
It always displays “True.”
98
Find the error in the following low-level programming code.
This is too difficult! It would be easier to use an upper-level language
The 34th 0 should be a 1.
The 84th digit should be a 1.
The 17th 1 needs to be changed to a 0.
99
What are two aspects of efficiency?
memory usage and length of code
execution time and length of code
wall clock time and CPU time
execution time and memory usage
100
Approximately how long will the download take if her video is 400 megabytes in size?
175 seconds
571 seconds
1.75 seconds
57.1 seconds