stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Foley, Ben AP Exam Review Flashcards | StudBud
Explore
/
Foley, Ben AP Exam Review
Foley, Ben AP Exam Review
90 terms
·
StudBud Administration
Imported from external platform
Flashcards
90 cards
F
Practice quiz
P
Host live
L
Questions
90
Answers
1
What is the minimum time to run all 5 processes?
8s
7s
10s
18s
2
Which of the following best approximates the minimum possible time to run all three processes in series?
esponses
28s
15s
9s
4s
3
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 9
x < 6
x >= 6
x > 10
4
What is one purpose of a digital certificate in secured communications?
It ensures the website’s code was created by a professional programmer.
It ensures the server is the actual server, not a copycat.
It ensures that transactions are being kept confidential
It ensures that the communication system was examined by a third party.
5
If a does not equal b, what error has occurred?
a will equal b on all computers
Roundoff error
Overflow error
Hexadecimal conversion error
6
What does this program return?
27
37
25
20
7
What type of algorithm would be best used for fraud detection?
Brute force algorithm
Optimization algorithm
Searching algorithm
Heuristic algorithm
8
What is displayed as a result of executing the following code segment? Assume all output is on one line.
Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Dog Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
9
What is displayed as a result of executing the code segment? (Assume all output is on one line)
Dog Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
Dog Cat Fish
10
Answer the question using the image below.
2^96 times as many
Twice as many
96 times as many
4 times as many
11
What will the flowchart display?
2 7
3 7
4 8
2 8
12
Which of the following potential benefits is
MOST
likely to be provided by the upgraded system?
esponses
Increasing the speed in ordering pizza online
Weather websites customizing site information based on the user’s location
Limiting the information about the sites and stores that the user visits
Offering products and services that are more relevant to the user
13
Which of the following considerations is likely to affect the ability of the program to process large data sets?
How much memory the program requires to run
The amount of program documentation that should be minimized
How many program statements the program contains
The order of the data put into the data set
14
Which of the following is
LEAST
likely to be included with the game?
Location of high-crime areas that should be avoided
Information about what types of mobile devices can be used
What protocols the mobile device uses to connect to the internet
Location of highly trafficked roads and bridges
15
Which of the following is least likely to receive targeted advertisements?
Users who only visit websites with digital certificates
Users with strong passwords and multifactor authentication
People without the Do Not Track option
People with the Do Not Track option engaged
16
What will the code segment display?
11
3
Nothing due to an error
6
17
Which of the following can be represented by a single binary digit?
Geographic location
Time
Light on / light off
Date
18
A program takes 4000s in series and 400s in parallel. What is the speedup?
1000
1
100
10
19
The procedure below is intended to display the sum of all numbers in the list, but it records an error of what type?
Logical error
Runtime error
No error; the program works as intended
Syntax error
20
What is the minimum number of lines that must be cut to isolate F completely?
4
6
8
0
21
What will be the output of the following program?
14 6
14
9 5 7
7 5 9
22
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
24 24 24
12 24 24
6 12 24
12 12 12
23
Which of the following are benefits to having information be easily accessible and changeable?
I and II only
I, II, and III
II and III only
I only
24
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
25
What should replace missing code in order to run checkForInEquality only if a number is different from a random number?
IF(number = true OR randomNumber = true)
IF(number = randomNumber)
IF(number = true AND randomNumber = drawing)
IF(number ≠ randomNumber)
26
Which of the following is
NOT
an investigation tool for designing programs?
Collecting data through surveys
Programming the most elegant code
User testing
Direct observations.
27
The first element in the list is counted twice, resulting in an incorrect value. What type of error occured?
Logical error
Syntax error
Runtime error
No error. The program works as intended.
28
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
How many locations the player visited
The player’s score
29
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.
30
What does the following algorithm display?
When B is false, the algorithm displays “False.”
It always displays “True.”
When A is false, the algorithm displays “False.”
It always displays “False.”
31
What will the following algorithm display after running the code below?
3
4
2
1
32
What should replace <missing condition> so the program below displays TRUE 60% of the time?
x MOD 5 = 5
x MOD 5 = 0
x MOD 2 = 0
x MOD 2 = 1
33
What is the code segment displaying?
68
0
17
34
34
Answer the question using the image below.
Lossless transformation
Addition transformation
Frequency transformation
Lossy transformation
35
Which of the following types of components is necessary for cybersecurity?
I, II, and III
III only
I only
I and II only
36
What is a major disadvantage of the internet’s model of trust?
Improper trusts can be very damaging due to the amount of power of websites
A website can download malicious code even if it is blocked by a firewall.
It allows data to be read by an interceptor, as websites can't be encrypted
A malicious website automatically gains access to the computer's ROM.
37
Why do computing innovations tend to lead to legal concerns?
These laws may not cover certain aspects of new technology.
There is no way to hide your IP address on the internet.
Lawyers are unfamiliar with compuing laws.
Laws cannot keep up with the speed of innovations.
38
What is the value of sum displayed after this algorithm is run?
4
Error
6
0
39
What percentage of the time will the program display an even number?
20
40
50
10
40
The procedure isFound(list, item) will return TRUE if an item is found in a list. What will the code display?
[ ]
[1, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[4, 6, −4]
41
What will the program display?
OXXOO
OXXOXXOXX
The program is an infinite loop.
OOOXX
42
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)
43
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
n!
100n^4
4^n+8n^2
3^n
44
What is displayed after running the algorithm below?
133
12
43
145
45
Why is cryptography essential to cybersecurity?
It stops all identity fraud in every circumstance
It used third party communication techniques
It prevents data from being edited
It prevents intercepted files from being read
46
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of the mysterious & wonderful jellyfish on the beach or water
Collecting recordings using ultrasonic microphones and sonograms of bats
Calculating PSAT scores for a school district
The behavior of fireflies during the summer months
47
Which of the following is a potential outcome of a company collaborating with scientists to run simulations?
If they need information to create a hypothesis, a simulation can be used
All of the answers are correct.
An abnormal result could be used as a basis for further research.
A simulation could reduce the cost of a potentially expensive experiment.
48
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.
The number and size of pixels will be less.
The image quality will be less and will result in a blurry imag
Some of the data will be lost and cannot be recovered.
49
What will y display?
0
16
20
15
50
Which of the following lists is
NOT
a candidate for a binary search?
A list of students in order of height
A list of words in a dictionary
A list of numbers from smallest to largest
A list of words from a poem in the order they appear in the poem
51
What percentage of the time will the following program display a number?
75
20
10
25
52
What is displayed by running the code segment?
3 3 6
3 11 3
11 3 8
8 4 6
53
Which of the following is true about data compression?
Lossless data compression is the best compression under all conditions.
It can be used for pictures and video only.
It can be used to reduce the size of a file for storage or transmission.
Lossy compression cannot be used when sending pictures.
54
Answer the question using the image below.
24
8
512
256
55
Which of the following is a true statement about data transmitted over the internet?
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 DMCA.
Redundancy standards are set by large companies.
56
What will the executed code display?
All even numbers between 3 and 12
All odd numbers between 1 and 12
All even numbers between 1 and 12
All odd numbers between 3 and 12
57
Which of the following could be a possible explanation for blurry pictures being sent over email?
Some of the data was lost in transmission
The picture was compressed using lossy compression
The packets weren't assembled in the correct order
The picure was compressed losslessly
58
The Caesar cipher is an example of what type of encryption?
Public key encryption
Symmetric encryption
Home key encryption
No key encryption
59
What will the following code segment display?
Nothing due to an error
9 10 7 4 1
10
1 4 7 10 9
60
What will the above program display?
2 8 14
Nothing due to an infinite loop
3 8 0
4 8 8
61
Why does program code have to be run through a compiler?
Program code must be translated into a language the computer understands.
Program code is write-only until it is run through a compiler.
Program code must be debugged by the compiler before it can ever run.
It doesn’t, as the new program could be run directly from the code.
62
What type of concern and what type of group/program is represented in the situation below?
Security concern, commercial group
Security concern, government program
Privacy concern, commercial group
Privacy concern, government program
63
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
GPS location
Event sensing; an event would be the user pushing a button or screen
Picture of the player
Age of the player
64
What is displayed as a result if the user inputs “Karel” to the program?
What is your name? Hello Karel
What is your name? Karel
What is your name?
Hello Karel
65
Which best describes the role of TCP?
Setting the rules for the assignment of IP addresses
The foundation of data communication for the World Wide Web
A common protocol for encrypting and decrypting data
The set of rules for the path packets taken on the fault-tolerant internet
66
Why does updating a file require more memory than reading a file?
An updating file needs the original and updated version to be in memory.
An updated file uses hard disk & RAM, while a read file uses only hard disk
A read file needs only certain parts to be loaded to memory.
A read file requires no memory.
67
Which of the following is the most likely data privacy concern for the original browser?
Cookies are text files to keep track of website visits
Information could be collected to brand you as a member of a certain group
Cookies are responsible for spam and pop-up ads
Cookies are used to acquire users' private encryption keys
68
What does the algorithm display?
4
7
3
5
69
Which algorithms calculate average correctly?
Only B
Only A
Neither A nor B
Both A and B
70
What will the following code segment display?
6
11
Nothing will be displayed due to an error.
3
71
How many lines need to be cut to completely isolate computer E from computer C?
6
3
0
8
72
The algorithmshould display the total value in list1, not counting the value 13. What should replace missing code?
item ≠ 13
list1 ≠ 13
item = 13
list1 = 13
73
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
2000
1
1000
11
74
What is displayed when the code segment is executed?
1 3 5 7 9
3 9
9
1 5 7
75
Using the partial hierarchy shown above, 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
76
ch of the following does NOT need to be considered when determining the credibility of a source?
Sponsorship of the article or publisher
Use of persuasive techniques within the source
Publisher’s reputation and credentials
Author’s reputation and credentials
77
What is the code below displaying?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
2, 4, 6, 8, 10, 12, 14
Nothing will be displayed
3, 6, 9, 12, 15
78
Find the error in the following low-level programming code.
The 34th 0 should be a 1
The 84th digit should be a 1.
The 17th 1 needs to be changed to a 0.
This is too difficult.
79
What will be the result of the displayed program?
7 5 9
14 6
9 5 7
6 14
80
findAverage is intended to return the average number in a list of numbers. Which test case returns the correct average?
numbers[0, 1, 35, 6]
numbers[3, 5, 11, 6]
numbers[11, 35, 6]
numbers[1, 1, 35, 6]
81
Answer the question using the image below.
A simulation can account for every variable
A simulation is guaranteed to be closer to real life
A simulation would be easier and more cost-effective
Simulations are guaranteed to have the exact same result as in real life
82
Which of the following best approximates the minimum possible time to run all five processes in parallel?
15s
9s
13s
11s
83
Which of the following could NOT be a potential IP address?
54.116.188.246
92.11.198.113
128.198.232.65
174.260.45.144
84
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 9
x < 1
x <= 1
x <= 9
85
Convert 88DEC to a binary number.
1000001
1111000
1011000
1010101
86
Which is NOT metadata for the picture?
The time the picture was taken
The picture of the dog
The memory space taken up by the picture
The location where the picture was taken
87
Which of the following data is not provided directly but is necessary for the upgraded game to operate as desc
User name
GPS location of user
Speed traveling
Location of landmarks used in the game.
88
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 true
Always false
89
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
90
Which of the following illustrate ways that the internet facilitates collaboration?
I only
II and III only
I and III only
I, II, and III