stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Ung, Kelly AP Exam Review Flashcards | StudBud
Explore
/
Ung, Kelly AP Exam Review
Ung, Kelly AP Exam Review
90 terms
·
StudBud Administration
·
1 play
Imported from external platform
Flashcards
90 cards
F
Practice quiz
P
Host live
L
Questions
90
Answers
1
Which of the following is
NOT
an investigation tool for designing programs?
Programming the most elegant code
Direct observations.
User testing
Collecting data through surveys
2
What type of error did the procedure below suffer from?
Logical error
No error. The program works as intended.
Runtime error
Syntax error
3
The Caesar cipher is an example of what type of encryption?
Home key encryption
Public key encryption
Symmetric encryption
No key encryption
4
What will the executed code display?
All even numbers between 3 and 12
All odd numbers between 1 and 12
All odd numbers between 3 and 12
All even numbers between 1 and 12
5
An example of metadata about sea turtle nests could
the number of eggs in the nest
number of incubation days
location of the nest
tracking number assigned to the nest
6
Put the steps of the algorithm in order.
Step 1, Step 5, Step 3, Step 6, Step 2, Step 4
Step 1, Step 5, Step 6, Step 3, Step 4, Step 2
Step 5, Step 1, Step 6, Step 3, Step 2, Step 4
Step 5, Step 1, Step 2,Step 4, Step 6, Step 3
7
What is displayed because of executing the code segment?
1 3 5 7 9
1 5 7
9
3 9
8
What will the following algorithm display after running the code below?
2
3
4
1
9
Using the partial hierarchy shown above, which of the following commands would properly import ThreadLocalRandom?
import ThreadLocalRandom.concurrent.util.java
import java.util.function.ThreadLocalRandom
import java.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
10
What has Creative Commons provided?
Cooperative copyright arbitration
Ways to share other poeple's creations without their knowledge
Licensing options by the owners of the artifacts
Free use of other people's work
11
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of mysterious and wonderful jellyfish on the beach or water
Calculating PSAT scores for a school district
The behavior of fireflies during the summer months
Collecting recordings using ultrasonic microphones and sonograms of bats
12
The color chooser should result in 25% BLUE. Which could replace <missing condition>?
Select two answers.
RANDOM(5, 8) > 7
RANDOM(250, 1000) < 251
RANDOM(1, 2) > 1
RANDOM(1, 4) < 2
13
What will the following code segment display?
6
Nothing will be displayed due to an error
3
11
14
Convert 88DEC to a binary number.
1111000BIN
1000001BIN
1010101BIN
1011000BIN
15
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (north)
NOT CAN_MOVE (left)
CAN_MOVE (right)
NOT CAN_M0VE (forward)
16
Which of the following algorithms can be used to find all the crimes that occured in a certain neighborhood?
Algorithm II only
Both Algorithm I and Algorithm II
Neither Algorithm I nor Algorithm II
Algorithm I only
17
When access to the Internet is unequal based on geographic or socioeconomic reasons, it's referred to as the:
Digital Divide
Distance Divide
Internet Divide
Wealthy Divide
18
The procedure isFound(list, item) returns TRUE if an item is found in a list What will the following procedure display?
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[4, 6, −4]
[1, 6, −4]
[ ]
19
Which of the following illustrate ways that the internet facilitates collaboration?
I and III only
II and III only
I, II, and III
I only
20
Which of the choices below properly identify these concepts?
Hash Codes and Key Transfers
Lexicographic and Asymmetric
Hash Codes and Key Transfers
Asymmetric and Symmetric
21
Is a binary search always the fastest search when searching for a number in a sorted list?
No, the first pass of a linear search finds the word faster than binary
A binary search is always faster with a sorted list.
For a large list, binary searches are always faster.
For a large list, linear searches are always faster.
22
Convert 111111BIN to a decimal number
33
29
31
63
23
Which of the following is NOT metadata for the picture?
The time the picture was taken
The picture of the dog
The location where the picture was taken
The memory space taken up by the picture
24
In the following flowchart, what is the value of RESULT?
Always true
Always false
True when both A and B are true
True when either A or B are true
25
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
26
What will be the output of the following program?
14 6
7 5 9
14
9 5 7
27
Which of the following test cases will return the correct average using the above procedure?
numbers[0, 1, 35, 6]
numbers[1, 1, 35, 6]
numbers[3, 5, 11, 6]
numbers[11, 35, 6]
28
What is the value of sum displayed after this algorithm is run?
6
4
Error
0
29
Which of the following is true about data compression?
Lossy compression cannot be used when sending pictures.
Data compression can be used to reduce size of a file for storage.
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and video only.
30
What is the code segment displaying?
0
34
68
17
31
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a OR b
b AND (a AND b)
NOT (a AND b)
a AND (a AND b)
32
What is the following program returning?
25
27
37
20
33
What percentage of the time will the program display an even number?
40%
10%
50%
20%
34
What is true about the packets of information sent when sending pictures?
Packets are received in the order that they are sent.
Packets are sent by the quickest path possible in the correct order.
All of the above.
Packets are sent in multiple paths and can be received out of order.
35
Which algorithm calculates average correctly?
Neither Algorithm A nor Algorithm B calculates average correctly.
Algorithm B calculates average in all cases, while Algorithm A does not.
Algorithm A calculates average in all cases, while Algorithm B does not.
Both Algorithm A and B calculate correctly, Algorithm A more efficient.
36
What will the above program display?
3 8 0
2 8 14
4 8 8
Nothing due to an infinite loop
37
What protocol below guides the rules about how data are subdivided into packets before transmission?
esponses
TCP
HTTP
DNS
FTP
38
Which of the following best approximates the minimum possible time to run all five processes?
8 seconds
10 seconds
18 seconds
7 seconds
39
Which of the following best approximates the minimum possible time to run all three processes in series?
28 seconds
15 seconds
4 seconds
9 seconds
40
The following program is intended to display the string 789. What type of error will the following procedure cause?
Syntax error
No error
Logic error
Runtime error
41
What does the algorithm display?
4
5
7
3
42
What is the term for showing someone information based on their prior searches and purchases?
Aggregation of data
Open source marketing
Target advertising
Open access marketing
43
The algorithm below should display the total value in list1,not thevalue 13.What line of code can replace<missing code>?
list1 ≠ 13
list1 = 13
item ≠ 13
item = 13
44
Which of the following statements are true about high-level programming languages? Select
two
answers.
A high-level programming language often uses natural language elements.
A high-level programming language allows for code to be re-used.
A high-level programming language are used for multiplying and subtracting.
A high-level programming language does not ensure program reliability.
45
What will be the result of the displayed program?
6 14
9 5 7
14 6
7 5 9
46
What is an example of sharing images and allowing individuals to scan them for certain features?
Citizen Science
Comtaminated reseach
Heuristics
Moore's Law
47
Which of the statements below BEST describes what will happen if ISP X, Host 3, and Host 11 are not working?
ISY will receive packets indicating failure to Host 3, reroute data to work
Host 1 will compensate for the outage and route the data accordingly
The Client will not receive any data due to the outage
48
What could a single binary value represent?
Volume on a radio
If a light is on or off
Time
Temperature in degrees Celsius
49
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
Internet Protocol
JavaScript Coding Protocol
50
Which of the following best approximates the minimum possible time to run all five processes in parallel?
13 seconds
11 second
9 seconds
15 seconds
51
What is displayed after running the algorithm below?
12
43
133
145
52
How many lines need to be cut to completely isolate computer E from computer C?
0
8
6
3
53
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
2,000
11
1,000
54
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
esponses
3^n
100n^n
n!
4^n+8n^2
55
What is the minimum number of binary digits needed to store the number 56?
6
1
3
6
56
Which of the codes below will correctly swap the frog with the bear?
temp = animal[1]animal[1] = animal[2]animal[2] = temp
animal[3] = animal[1]animal[1] = animal[3]
animal[1] = animal[2]animal[2] = animal[1]
temp = animal[1]animal[1] = animal[3]animal[3] = temp
57
The procedure is to show the sum of numbers but it records an error when displaying the total. What error is this?
Syntax error
Runtime error
No error; the program works as intended
Logical error
58
Suppose that a web browser on a mobile device collects information about login information. Is this a security concern?
Only the geolocation, as login information is unrelated to personal info.
No, because neither is particularly tied to a person's identity.
Yes, because it could be used for malicious purposes like identity theft.
Only the login information, as geolocation is meaningless on the internet.
59
Which best describes the role of TCP?
The foundation of data communication for the World Wide Web
The set of rules for the path packets taken on the fault-tolerant internet
A common protocol for encrypting/decrypting data on the internet
The rules for a numerical label assigned to devices connected to internet
60
What is displayed as a result of executing the code segment?
Dog Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Golden Bandicoot Cat Fish
Golden Bandicoot Cat Fish
61
Which of the following statements is
NOT
correct:
Logic gates are modeled by Boolean functions.
Binary data is processed by physical layers of computing hardware.
Logic gates are used to perform operations such as addition and subtraction
Hardware is the lowest level of abstraction.
62
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x < 9
x <= 9
x <= 1
63
Which of the following is a cause of the digital divide?
Lack of knowledge on how to use technology
Lack of access to technology due to location
All of the above
Lack of access to the technology due to affordability
64
What is displayed by running the code segment?
8 4 6
3 3 6
3 11 3
11 3 8
65
What will the following code segment display?
22
30
1
10
66
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x >= 9
x >= 6
x > 10
67
Sort the levels of abstraction, lowest to highest:
I, IV, II, III
I, II, III, IV
I, IV, III, II
I, III, IV, II
68
What can replace <missing code> to make the program return treu when the 1st element or the array is equal to the last?
( list1 = list1 )
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[0] = list1[1] )
( list1[1] = list1[LENGTH(list1)] )
69
What are some possible outcomes of this exploration?
I, II, and III
II and III
I and II
I and III
70
Projects are typically presented using a graph as opposed to a table or raw data. Why might this be?
Graphs can be placed into a slideshow or document, while tables cannot
Graphs can show trends that might not be easily seen with raw data.
Graphs are able to show all the detail necessary to understand data
Graphs are easier to read and interpret at a glance
71
Which of the following types of components is necessary for cybersecurity?
I, II, and III
I and II only
III only
I only
72
If a does not equal b, what error has occurred?
Roundoff error
Overflow error
Hexadecimal conversion error
a will equal b on all computers
73
Which of the following test cases will NOT find the maximum number in the list?
list1[0, 0, 0, 0]
list1[23, 67, 3]
list1[4]
list1[−23, −67, −3, −7]
74
What will the following program display?
OOOXX
OXXOO
OXXOXXOXX
The program is an infinite loop.
75
Switching from IPv4, which has 232 IP addresses, to IPv6, which has 2128 addresses,how many more IP addresses are there?
2^96 as many IP addresses
2^2 as many IP addresses
Twice as many IP addresses
96 as many IP addresses
76
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 always be solved in a reasonable amount of time.
Efficient solution uses more resource, ensures the results are right
An efficient solution can make it easier to analyze larger data sets.
77
What is the minimum number of lines that must be cut to isolate F completely?
8
6
4
0
78
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 1
x MOD 2 = 0
x MOD 5 = 0
x MOD 5 = 5
79
The first element in the list is counted twice, resulting in an incorrect total value. What type of error happened?
No error. The program works as intended
Runtime error
Logical error
Syntax error
80
What will the program above display?
4 8
2 8
2 7
3 7
81
Why does program code have to be run through a compiler?
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.
Program code must be debugged by the compiler before it can ever run.
Program code must be translated into a language the computer understands.
82
Which of the following best approximates the minimum possible time to run all three processes in series?
38 seconds
20 seconds
8 seconds
10 seconds
83
Which of the following potential benefits is MOST likely to be provided by the upgraded system?
Limiting the information about the sites and stores that the user visits
Offering products and services that are more relevant to the user
Weather websites customizing site information based on the user’s location
Increasing the speed in ordering pizza online because it remember user’s ad
84
A web browser uses IPv4 and pages a request for a websites IP. Which of the following could NOT be a potential response?
174.260.45.144
92.11.198.113
128.198.232.65
54.116.188.246
85
What would be a good use of constants when initializing variables at the beginning of a program?
I, II, and III
I and III only
I and II only
II and III only
86
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
100
0
8
1
87
Which of the following is
NOT
metadata?
The geographic location where the picture was taken
The Red, Green, and Blue values of the top left pixel
The filename
The date the photo was taken
88
What will the following code segment display?
1 4 7 10 9
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
10
89
What will the following code segment display?
6
3
Nothing will be displayed due to an error.
11
90
Which of the following can be represented by a single binary number?
Select two answers
Do you have a puppy?
What is the speed of a puppy chasing a squirrel?
Is your puppy named “Waffles”?
What is the position of an object in a grid of squares?