stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Al-Magsoosi, Yousif AP Exam Review Flashcards | StudBud
Explore
/
Al-Magsoosi, Yousif AP Exam Review
Al-Magsoosi, Yousif AP Exam Review
94 terms
·
StudBud Administration
Imported from external platform
Flashcards
94 cards
F
Practice quiz
P
Host live
L
Questions
94
Answers
1
What will y display?
15
20
16
0
2
Which of the following does NOT need to be considered when determining the credibility of a source?
Sponsorship of the article or publisher
Author’s reputation and credentials
Publisher’s reputation and credentials
Use of persuasive techniques within the source
3
Which of the following is a negative trade-off inherent in lossless compression?
The file can be difficult to email and can take up lots of memory storage.
Some of the data will be lost and cannot be recovered.
The image quality will be less and will result in a blurry image.
The number and size of pixels will be less.
4
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
0
1
100
5
In the following flowchart, what is the value of RESULT?
Always false
True when either A or B are true
Always true
True when both A and B are true
6
Which of the following is a cause of the digital divide?
Lack of knowledge on how to use technology
Lack of access to the technology due to affordability
Lack of access to technology due to location
All of the above
7
What will the following code segment display?
Nothing will be displayed due to an error.
3
11
6
8
Why is cryptography essential to cybersecurity?
Cryptography is used to prevent files on a server from being edited.
Cryptography does not allow data on a server to be edited by anyone,
Cryptography by preventing a third party from hijacking a connection
Cryptography ensures that the files cannot be read if they are intercepted
9
What percentage of the time will the program display an even number?
20%
10%
50%
40%
10
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x > 10
x >= 6
x >= 9
x < 6
11
Which of the following is
NOT
metadata?
The filename
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
12
Which best describes the role of TCP?
Setting the rules for a numerical label assigned to each device on internet
The set of rules for the path packets taken on the fault-tolerant internet
A common protocol for encrypting and decrypting data transferring online
The foundation of data communication for the World Wide Web
13
Which of the following is NOT metadata for the picture?
The memory space taken up by the picture
The location where the picture was taken
The picture of the dog
The time the picture was taken
14
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 5 = 5
x MOD 2 = 1
x MOD 5 = 0
15
Which of the following commands would properly import ThreadLocalRandom?
import java.ThreadLocalRandom
import java.util.function.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
16
What does the algorithm display?
3
7
5
4
17
When running the program, the first element in the list is counted twice, an incorrect total value. What error is this?
No error. The program works as intended
Logical error
Runtime error
Syntax error
18
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
Sponsorship of the article or publisher
Publisher’s reputation and credentials
19
Which of the following is true about data compression?
Data compression can be used for pictures and video only.
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions.
Data compression is used to reduce size of file for storage or transmission
20
What will the following program display?
The program is an infinite loop.
OXXOXXOXX
OXXOO
OOOXX
21
What will be the result of the displayed program?
6 14
14 6
7 5 9
9 5 7
22
Which of the following is a true statement about data transmitted over the internet?
Redundancy is overseen by large companies that set the standards used
All data traveling over the internet is in binary.
Packets are received in the same order that they are sent.
The DNS has been challenged by the Digital Millennium Copyright Act (DMCA)
23
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 6
x < 6
x > 10
x >= 9
24
What is displayed by running the code segment?
8 4 6
3 3 6
3 11 3
11 3 8
25
In the following flowchart, what is the value of RESULT?
True when either A or B are true
True when both A and B are true
Always false
Always true
26
Convert 88 to a binary number.
1000001
1011000
1010101
1111000
27
What is the minimum number of binary digits needed to store the number 56?
1
5
3
6
28
What will y display?
0
20
15
16
29
If a does not equal b, what error has occurred?
Overflow error
Roundoff error
Hexadecimal conversion error
a will equal b on all computersa will equal b on all computers
30
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of fireflies during the summer months
Calculating PSAT scores for a school district
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of the mysterious and wonderful jellyfish on the beach
31
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 in poem
A list of words in a dictionary
32
The algorithm below should display the total value contained in list1, not counting the value 13. What should replace?
item ≠ 13
item = 13
list1 ≠ 13
list1 = 13
33
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
34
What is displayed as a result of executing the code segment?
Dog Cat Fish
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
35
Which of the following commands would properly import ThreadLocalRandom?
import java.util.function.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
import java.util.concurrent.ThreadLocalRandom
import java.ThreadLocalRandom
36
The code records an error when trying to display the total value contained in the list. What type of error is this?
Syntax error
No error; the program works as intended
Runtime error
Logical error
37
What will y display?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
2, 4, 6, 8, 10, 12, 14
3, 6, 9, 12, 15
Nothing will be displayed
38
Which of the following is a true statement about data transmitted over the internet?
Packets are received in the same order that they are sent.
The DNS has been challenged by the Digital Millennium Copyright Act (DMCA)
All data traveling over the internet is in binary.
Redundancy is overseen by large companies that set the standards used
39
Which of the following is
LEAST
likely to be included with the game?
Location of highly trafficked roads and bridges
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
40
Which of the following test cases will return the correct average using the above procedure?
numbers[1, 1, 35, 6]
numbers[11, 35, 6]
numbers[0, 1, 35, 6]
numbers[3, 5, 11, 6]
41
What is a major disadvantage of the internet’s model of trust?
trusted website can still install bad code even if it's blocked by firewall
A trusted website has power over the computer’s ROM
A trusted website can have a large amount of power over a computer
A trusted website cannot have encrypted communications
42
The findings from a project are typically presented using a graph as opposed to table or raw data. Why might this be?
Graphs can be easily placed into slideshow or document while tables cannot
Graphs are harder to read and interpret at a glance.
Graphs are able to show all of the detail necessary to understand data.
Graphs can show trends that might not be easily seen with raw data.
43
Which of the following types of components is necessary for cybersecurity?
I, II, and III
I and II only
I only
III only
44
What is displayed after running the algorithm below?
43
12
145
133
45
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
46
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.
Players play the game in their spare time.
People are exercising.
47
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
Weather websites customizing site information based on the user’s location
Increasing the speed in ordering pizza online
Offering products and services that are more relevant to the user
48
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.
Too difficult. It would be easier to use an upper-level language
49
What is the following program returning?
37
27
20
25
50
What would be a good use of constants when initializing variables at the beginning of a program?
I and II only
I and III only
II and III only
I, II, and III
51
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.”
52
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
Picture of the player
Age of the player
GPS location
Event sensing; an event would be the user pushing a button or screen
53
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
How much time a person spent playing the game
Recording whether the player was speeding when driving to a location.
How many locations the player visited
The player’s score
54
Convert 88 to a binary number.
1111000
1010101
1011000
1000001
55
Which of the following test cases will NOT find the maximum number in the list?
list1[23, 67, 3]
list1[−23, −67, −3, −7]
list1[4]
list1[0, 0, 0, 0]
56
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
7
2
8
9
57
What will the program above display?
4 8
2 8
3 7
2 7
58
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of the mysterious and wonderful jellyfish on the beach
Calculating PSAT scores for a school district
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of fireflies during the summer months
59
What will be the output of the following program?
9 5 7
14 6
14
7 5 9
60
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.
It doesn’t, as the new program could be run directly from the code.
Program code is write-only until it is run through a compiler.
61
Which of the data is not provided by the user or their device but is needed for the upgraded game to operate?
User name
Speed traveling
Location of landmarks used in the game.
GPS location of user
62
Which of the following can be represented by a single binary digit?
Geographic location
Time
Date
Light on / light off
63
What are two aspects of efficiency?
execution time and memory usage
wall clock time and CPU timewall clock time and CPU time
execution time and length of code
memory usage and length of code
64
Metadata automatically generated tends to be more accurate than manually created metadata.
False
True
65
Which of the following best approximates the minimum possible time to run all three processes in series?
28 seconds
15 seconds
9 seconds
4 seconds
66
What is displayed because of executing the code segment?
9
1 3 5 7 9
1 5 7
3 9
67
What percentage of the time will the following program display a number?
10%
75%
20%
25%
68
What will be the output of the following program?
14
14 6
7 5 9
9 5 7
69
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
70
What is the value of sum displayed after this algorithm is run?
6
4
0
Error
71
What will the following code segment display?
11
6
Nothing will be displayed due to an error.
3
72
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x <= 1
x <= 9
x < 9
73
What will the above program display?
3 8 0
Nothing due to an infinite loop
2 8 14
4 8 8
74
Which algorithm calculates average correctly?
Algorithm A calculates average in all cases, while Algorithm B does not.
Algorithm B calculates average in all cases, while Algorithm A does not.
Both Algorithm A and B calculate average correctly, but A is better
Neither Algorithm A nor Algorithm B calculates average correctly.
75
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
76
What is a benefit of using a simulation?
Simulations have as much of an effect on the real world as an experiment
A simulation would be able to account for every variable in an experiment
Simulations can run only once and are guaranteed to be close to real life
A simulation will be more cost-effective and easier to do than an experimen
77
What will the following algorithm display after running the code below?
1
3
2
4
78
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
a AND (a AND b)
a OR b
NOT (a AND b)
79
What procedure will result in the robot landing on the star?
moveAndSpin(7, 3)
moveAndSpin(0, 7)
moveAndSpin(4, 1) moveAndSpin(6, 0)
moveAndSpin(0, 5) moveAndSpin(4, 3) moveAndSpin(2, 0)
80
What is the minimum number of lines that must be cut to isolate F completely?
0
4
6
8
81
Which of the following is the most likely data privacy concern for the original browser?
Cookies are responsible for spam and create pop-up advertisements.
Information about your preferences can be used to get you in a group
Cookies are text files that keep track of such things on that website
Cookies are used to acquire users’ private encryption keys.
82
The procedure isFound 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]
83
What will the following code segment display?
9 10 7 4 1
1 4 7 10 9
Nothing will be displayed due to the error index out of bounds.
10
84
Which of the following test cases will return the correct average using the above procedure?
numbers[3, 5, 11, 6]
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
numbers[1, 1, 35, 6]
85
What will the following code segment display?
10
9 10 7 4 1
Nothing will be displayed due to the error index out of bounds.
1 4 7 10 9
86
What is displayed as a result of executing the following code segment?
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
Waffle Moose Noodles Novack Benji
87
Which of the following is least likely to receive targeted advertisements?
Users with strong passwords and multifactor authentication
Users who visit websites with digital certificate that block advertisements
Individuals using the web browser without the Do Not Track option
Individuals using the web browser with the Do Not Track setting engaged
88
What will the following program display?
6 12 24
12 12 12
12 24 24
24 24 24
89
What will the executed code display?
All odd numbers between 1 and 12
All even numbers between 3 and 12
All odd numbers between 3 and 12
All even numbers between 1 and 12
90
What will the following code segment display?
10
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
1 4 7 10 9
91
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
1,000
11
2,000
92
What will the following code segment display?
11
3
6
Nothing will be displayed due to an error.
93
The following program is intended to display the string 789. What type of error will the following procedure cause?
Runtime error
No error
Logic error
Syntax error
94
What is the code segment displaying?
68
34
0
17