stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Pham, Angela AP Exam Review Flashcards | StudBud
Explore
/
Pham, Angela AP Exam Review
Pham, Angela AP Exam Review
100 terms
·
StudBud Administration
·
1 play
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
What will be the result of the displayed program?
34 5 6
6 14
0 1 2 3
7 5 9
2
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?Responses
Players play the game in their spare time.
People are exercising.
People are not watching where they are walking and are getting injured.
Players are becoming more cultured by visiting artworks.
3
What would be a good use of constants when initializing variables at the beginning of a program?
I and II only
I, II, and III
I and III only
II and III only
4
What does the following algorithm display?
When B is false, the algorithm displays “False.”
It always displays “False.”
It always displays “True.”
When A is false, the algorithm displays “False.”
5
What will the above program display?
2 8 14
3 8 0
Nothing due to an infinite loop
4 8 8
6
What percentage of the time will the program display an even number?
10
50
20
40
7
What will be the output of the following program?
7 5 9
14 6
14
9 5 7
8
Which of the following illustrate ways that the internet facilitates collaboration?
I only
II and III only
I, II, and III
I and III only
9
Which of the following statements below is NOT true?Responses
Moving music onto your digital music player reduces file size
All lossless compression is based on the idea of breaking a file into small
Scanning in a picture creates a lossy format result.
Lossy formats are used to rebuild its exact pre compressed state
10
What will the following code segment display?
6
11
Nothing will be displayed due to an error.
3
11
Which of the following is the most likely data privacy concern for the original browser?
Cookies are text files that keep track of such things as website visits
Information collected about your personal preferences and private activitiy
Cookies are responsible for spam and create pop-up advertisements.
Cookies are used to acquire users’ private encryption keys.
12
What does this do?
Nothing
Displays an image
The end
Displays an image
13
What will the executed code display?Responses
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
14
What is the minimum number of lines that must be cut to isolate F completely?
8
6
0
4
15
What is displayed by running the code segment?
3 11 3
8 4 6
3 3 6
11 3 8
16
Instead, it records an error when trying to display the total value contained in the list. What's the error?
Logical error
Syntax error
No error; the program works as intended
Runtime error
17
What is displayed?
3 8 0
2 8 14
Nothing due to an infinite loop
4 8 8
18
What percentage of the time will the program display an even number?
50%
10%
20%
40%
19
Which of the following test cases will return the correct average using the above procedure
numbers[1, 1, 35, 6] numbers[1, 1, 35, 6] - no response given
numbers[3, 5, 11, 6]
numbers[11, 35, 6]
numbers[0, 1, 35, 6]
20
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
21
What is the decimal number in binary?
1011000
1111000
1000001
1010101
22
What will be the values of x and y after this code segment executes?
x is 40, y is 40
x is 40, y is 30
x is 20, y is 20
x is 30, y is 40
23
Which of the codes below will correctly swap the frog with the bear?
animal[3] = animal[1]animal[1] = animal[3]
temp = animal[1]animal[1] = animal[3]animal[3] = temp
animal[1] = animal[2]animal[2] = animal[1]
temp = animal[1]animal[1] = animal[2]animal[2] = temp
24
Which of the following is least likely to receive targeted advertisements?
ppl visit only websites with a digital certificate blocks ads
Users with strong passwords and multifactor authentication
Individuals using the web browser with the Do Not Track setting engaged
Individuals using the web browser without the Do Not Track option
25
Which of the following best the minimum possible time to run all five processes?
(4-5 is a series) and (1-3 is a series)
10 seconds
7 seconds
18 seconds
0 seconds
26
What is displayed because of executing the code segment?Responses
9
1 3 6 8
1 5 7
3 9
27
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)
28
What is displayed after running the algorithm below?
43
12
145
133
29
If a does not equal b, what error has occurred?
Roundoff error
Overflow error
a will equal b on all computers
Hexadecimal conversion error
30
What is displayed after running the algorithm below?
43
145
133
12
31
What will be displayed by
mystery( 3, myList)
?
10 8 7 5 4 2 1 0
9 6 3 0
10 8 7 5 4 2 1
9 6 3
32
Find the error in the following low-level programming code.
This is too difficult. To determine errors
The 17th 1 needs to be changed to a 0.
The 34th 0 should be a 1.
The 84th digit should be a 1.
33
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 9
x <= 1
x < 1
x <= 9
34
What type of algorithm would be best used for fraud detection?
Heuristic algorithm
Optimization algorithm
Brute force algorithm
Searching algorithm
35
What does this represent in a flow chart?
Nothing
The end
One or more processing steps, variable or statemnet
Displays an image
36
Which of the following data is not provided directly by the user, or their device, but is necessary for the game?
GPS location of user
Speed traveling
User name
Location of landmarks used in the game.
37
which of the following commands would properly import ThreadLocalRandom?
import java.util.function.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
mport java.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
38
Why is cryptography essential to cybersecurity?
by preventing a third party from hijacking a conne
Cryptography does not allow data on a server to be edited by anyone,
secures internet communications by ensuring that the files cannot be read
Cryptography is used to prevent publicly accessible files
39
What will the program above display?
4 8
3 7
2 7
2 8
40
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 calculate average correctly, but Algorithm A more efficient.
41
What type of error did the procedure suffer from?
no error; the program works as intended
Logical error
Syntax error
Runtime error
42
If the client requests data from Server Alpha, which of the statements below BEST describes what will happen
Host 1 will compensate for the outage and route the data accordingly
ISP Y will receive packets indicating a failure of Host 3, rerouting data
The Client will not receive any data due to the outage
nothing will happen
43
What does this represent in a flow chart?
The middle
The start
The end
Nothing
44
Which is true?
A list of words in a dictionary
A list of words from a poem in the order they appear in the poem
A list of numbers from smallest to largest
A list of students in order of height
45
What is the code segment displaying?
34
17
0
68
46
What is true?
I only
II and III
I , II , and III
II only
47
Which of the following is
NOT
an investigation tool for designing programs?
Direct observations.
Collecting data through surveys
Programming the most elegant code
User testing
48
What is the missing code?
3, 6, 9, 12, 15
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Nothing will be displayed
2, 4, 6, 8, 10, 12, 14
49
Which best describes the role of TCP?
Setting the rules for a numerical label assigned to each device connected
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 and decrypting data transferring on thet
50
What will Y display?
20
15
0
16
51
Which one is correct?
II only
II and III
I only
I , II , and III
52
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Author’s reputation and credentials
Use of persuasive techniques within the source
Sponsorship of the article or publisher
53
What does this do?
Calculates average
Does not work
Calculates median
Calculates mean
54
What type of transformation is the photo-editing software using?
Addition transformation
Lossy transformation
Frequency transformation
Lossless transformation
55
Which of the following is considered a potential effect rather than the purpose of the digital appointments?
The digital appointments will allow for more testing.
People without internet access will not be able to make an appointment
Digital appointments will ensure an even distribution of tests
Digital appointments will make people living in cities less likely to get
56
Where would the robot end up after running the following code?
It would move one square
It would move upward
It would not move
Nothing at all
57
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 6
x >= 9
x < 6
x > 10
58
What does this do?
Calculate average
Calculates median
Calculates mean
Does not work
59
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)
60
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
How many locations the player visited
Recording whether the player was speeding when driving to a location.
The player’s score
How much time a person spent playing the game
61
REPEAT 3 Times
{
REPEAT UNTIL (/* missing code */)
{
MOVE_FORWARD ()
}
ROTATE_RIGHT ()
CAN_MOVE (right)
NOT CAN_M0VE (right)
NOT CAN_MOVE(forward)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
62
how many more IP addresses will become available?
Twice as many IP addresses
2^2 as many IP addresses
2^96 as many IP addresses
96 as many IP addresses96 as many IP addresses - no response given
63
What does the algorithm display?
7
4
3
5
64
What type of transformation is the photo-editing software using?
Addition transformation
Lossy transformation
Frequency transformation
Lossless transformation
65
What is displayed by running the code segment?
8 4 6
3 3 6
11 3 8
3 11 3
66
What will the output be?
3
6
11
Nothing will be displayed due to an error.
67
What is a reasonable number of steps?
3^n
4N+8n^2
100n^4
n!
68
What is displayed as a result of executing the code segment?
Dog Cat Fish
Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Golden Bandicoot Cat Fish
69
What should replace
<missing code>
in the following algorithm?
IF(number ≠ randomNumber)
IF(number = true AND randomNumber = drawing)
IF(number = true OR randomNumber = true)
IF(number = randomNumber)
70
Which of the following is NOT metadata for the picture?
The time the picture was taken
The location where the picture was taken
The memory space taken up by the picture
The picture of the dog
71
what is the value of RESULT?
True when both A and B are true
True when either A or B are true
Always false
Always true
72
What line of code can replace <missing code> so the algorithm will work as intended?
list1 = 13
item ≠ 13
item = 13
list1 ≠ 13
73
Which of the following is the most likely data privacy concern for the original browser?
Cookies are used to acquire users’ private encryption keys.
Information collected about your personal preferences and private info
Cookies are text files that keep track of such
Cookies are responsible for spam and create pop-up advertisements.
74
first element in the list is counted twice, resulting in incorrect value. What error did the procedure suffer from?
Syntax error
Logical error
No error. The program works as intended.
Runtime error
75
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
Picture of the player
Event sensing; an event would be the user pushing a button or screen
76
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
Increasing the speed in ordering pizza online
Weather websites customizing site information based on the user’s location
Offering products and services that are more relevant to the user
77
What does the code do?
Temporarily switch a and b
Nothing
Deletes the value of a and switches it to b
Switches b into the missing code
78
Why is cryptography essential to cybersecurity?
secures communications by ensuring that the files cannot be read if they
does not allow data on a to be edited , ensuring the data’s integrity.
s by preventing a third party from hijacking a conne
used to prevent publicly accessible files on a server from being edited.
79
Which of the following can be represented by a single binary digit?Responses
Date
Light on / off
Geographic location
Time
80
What will the following code segment display?
1 4 7 10 9
9 10 7 4 1
10
Nothing will be displayed due to the error index out of bounds.
81
Which of the following concepts does this demonstrate?
commercial groups groups can be expolited from security protections
the curation of data by government programs can be exploited.
the curation of data by government programs can be exploited.
curation of data by commercial groups can be exploited.
82
What is a benefit of using a simulation?
Simulations can be run only once
A simulation would be more cost-effective and easier to create
Simulations have as much of an effect on the real world
A simulation would be able to account for every variable
83
What is the following program returning?
20
27
25
37
84
Review the choices below and select the option that would NOT be a valid application of computational science.
A biologist uses a computer simulation to measure the varying dynamics
a group of geologists use the software to detertmine the age of rocks
A group of scientists from NOAA design a Monte Carlo experiment tsunamis
He develops a computer program that will allow him to quickly research.
85
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[11, 35, 6]
numbers[3, 5, 11, 6]
86
Which of the following is true about data compression?
Lossy compression cannot be used when sending pictures.
Data compression used to reduce the size of a file for transmission.
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and video only.
87
Which of the choices below properly identify these concepts?Responses
Lexicographic and AsymmetricLexicographic and Asymmetric, no response given
Hash Codes and Key Transfers
Symmetric and Steganography
Asymmetric and Symmetric
88
Which of the following does NOT need to be considered when determining the credibility of a source?
Author’s reputation and credentials
Use of persuasive techniques within the source
Publisher’s reputation and credentials
Sponsorship of the article or publisher
89
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 image quality will be less and will result in a blurry image.
The file can take up lots of memory storage.
90
isFound(list, item) will return TRUE if an item is found in a list What will the following procedure display?
[1, 6, −4]
[4, 6, −4]
[ ]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
91
Which of the following is
LEAST
likely to be included with the game?
What protocols the mobile device uses to connect to the internet
Information about what types of mobile devices can be used
Location of high-crime areas that should be avoided
Location of highly trafficked roads and bridges
92
What is the value of sum displayed after this algorithm is run?
Error
6
4
0
93
What is this?
Displays a statement
Displays an image
A conditional step
Nothing
94
What is displayed as a result of executing the following code segment?
Moose Benji Novack Waffle Noodles
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Waffle Moose Noodles Novack Benji
95
Running the program, the first element in the list is counted twice, resulting in an incorrect total value. What error?
Syntax error
Logical error
No error. The program works as intended
Runtime error
96
Which of the following is
NOT
metadata?
The geographic location where the picture was taken
The date the photo was taken
The Red, Green, and Blue values of the top left pixel
The filename
97
What is displayed as a result if the user inputs “Karel” to the program?
What is your name?Hello Karel
What is your name? Hello Karel
What is your name?HelloKarel
Hello Karel
98
Find the error in the following low-level programming code.
The 84th digit should be a 1.
The 17th 1 needs to be changed to a 0.
The 34th 0 should be a 1.
This is too difficult. it would be easier to use an upper level langauge
99
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
6 12 24
12 12 12
12 24 24
24 24 24
100
What will the following algorithm display after running the code below?
1
2
4
3