stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Nguyen, Tran AP Exam Review Flashcards | StudBud
Explore
/
Nguyen, Tran AP Exam Review
Nguyen, Tran AP Exam Review
91 terms
·
StudBud Administration
AP Exam Review
Flashcards
91 cards
F
Practice quiz
P
Host live
L
Questions
91
Answers
1
An algorithm has n� number of steps. Which of the following would be considered a reasonable number of steps?
100n4
3n
n!
4n+8n2
2
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 1
x < 9
x <= 9
x < 1
3
Which of the choices below properly identify these concepts?
Lexicographic and Asymmetric
Asymmetric and Symmetric
Lexicographic and Asymmetric
Hash Codes and Key Transfers
4
What will the above program display?
3 8 0
Nothing due to an infinite loop
2 8 14
4 8 8
5
Which of the items below is NOT a technology advancement in law enforcement that is being used by officers in the field?
Software that allows for predictive policing
The use of drones to record and surveil in areas
Networked police cars that have instant access to information on suspects
Facial recognition software that allows officers to checks on suspects.
6
What is the value of sum displayed after this algorithm is run?
0
4
error
6
7
Monica types the following web address, widgets.cs.fbhs.org, into the URL bar in her browser.
The widgets will send the IP address of the widgets.cs name server.
The widgets.cs.fbhs.org will send the IP address of widgets.cs.fbhs.org
The .org name server will send the IP address of widgets.cs.fbhs.org
The .org name server will send the IP address of the fbhs.org name server.
8
Which of the following correctly identify methods of DNS cache poisoning? Select
two
answers.
Masquerading
Rogue Servers
DNS Key Distribution
DNS BINDing
9
The following program is intended to display the string 789. What type of error will the following procedure cause?
Syntax error
Runtime error
Logic error
No error
10
Which of the following factors most likely does
not
need to be included in her program?
Population size
Food supply
Antler size
Prevalence of illness in herdPrevalence of illness in herd
11
What will the following code segment display?
2
22
30
10
12
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(1, 2) > 1
RANDOM(1, 4) < 2
RANDOM(250, 1000) < 251
RANDOM(5, 8) > 7
13
Search algorithm would work as intended to find the value 35?[1, 43, 23, 65, 76, 34, 33, 12, 94, 576, 55, 35, 3456, 3]
Bubble sort
Insertion sort
Linear search
Binary search
14
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(5, 8) > 7
RANDOM(250, 1000) < 251
RANDOM(1, 2) > 1
RANDOM(1, 4) < 2
15
Which of the following statements is NOT correct:
Logic gates are used to perform operations such as addition and subtraction
Logic gates are modeled by Boolean functions.
Binary data is processed by physical layers of computing hardware.
Hardware is the lowest level of abstraction.
16
Which of the following is a cause of the digital divide?
All of the above
Lack of access to technology due to location
Lack of access to the technology due to affordability
Lack of knowledge on how to use technology
17
Which of the above, represented in binary as a byte, contains the most zeros?
.
C
p
K
18
Which of the following statements below is NOT true?
Lossy formats are excellent to use when a file must be compressed
All lossless compression is based on the idea of breaking a file
Scanning in a picture creates a lossy format result.
Moving music onto your digital music player is done is a lossless format
19
Which of the following is considered a potential effect of the mobile game rather than the purpose of the game?
People are exercising.
Players are becoming more cultured by visiting artworks.
Players play the game in their spare time.
People are not watching where they are walking and are getting injured.
20
What will be the result of the displayed program?
7 5 9
9 5 7
6 14
14 6
21
Which of the following test cases will NOT find the maximum number in the list?
list1[23, 67, 3]
list1[0, 0, 0, 0]
list1[4]
list1[−23, −67, −3, −7]
22
Which of the following statements is
NOT
correct:
Logic gates are used to perform operations such as addition and subtraction
Hardware is the lowest level of abstraction.
Logic gates are modeled by Boolean functions.
Binary data is processed by physical layers of computing hardware.
23
When should a heuristic algorithm be used?
Finding the quickest way to drive from Orlando, to Cold Foot, Alaska
When determining which files could have been exposed to a virus
When finding the lifetime batting average of Mookie Wilson
When calculating the average score for the national SAT test
24
What is displayed after running the algorithm below?
145
25
122
43
25
Which of the following lists is
NOT
a candidate for a binary search?
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
A list of words in a dictionary
26
What will the following code segment display?
5
Nothing will be displayed due to an error.
3
11
27
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 1
x <= 9
x < 9
x <= 1
28
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
7
8
0
2
29
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
1
100
0
8
30
Which of the following algorithms will display “3” if the number entered by the user contains a “3” in the ones place?
If(novack = 3)DISPLAY(3)
if(num / 10 = 3)DISPLAY(3)
if(num MOD 10 = 3)DISPLAY(num MOD 10)
If(num / 3 = 0)DISPLAY(3)
31
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)
a OR b
NOT b
32
Which of the following would be an example of "citizen science" that utilizes technology?
An advertising firm tests several potential commercials among members
A specially fitted camera records the hair and eye color of people
People take pictures of wildlife using an app that sends information
An app sends basic diagnostic information about errors to its developer.
33
What protocol below guides the rules about how data are subdivided into packets before transmission?
HTTP
FTP
DNS
TCP
34
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Internet Protocol
Simple Mail Transfer Protocol
JavaScript Coding Protocol
Hypertext Transfer Protocol
35
What type of error did the below procedure suffer from?
Syntax error
No error. The program works as intended
Runtime error
Logical error
36
What will the following code segment display?
11
5
3
4
37
How many lines need to be cut to completely isolate computer E from computer C?
0
8
3
6
38
What is the minimum number of binary digits needed to store the number 56?
5
1
6
3
39
Which of the statements below BEST describes what will happen if ISP X, Host 3, and Host 11 are not working
The Client will not receive any data due to the outage
ISP Y will receive packets indicating a failure to Host 3 and re-route
all of the above
Host 1 will compensate for the outage and route the data accordingly
40
When sending a picture from your phone to your friend’s phone using a mobile application, what is true?
Packets are sent by the quickest path possible in the correct order.
Packets are received in the order that they are sent.
Packets are sent in multiple paths and can be received out of order.
All of the above.
41
What methods could Emma use so that her story will likely be seen by the maximum number of people? Select two answers.
Write an article for an online journal
E-mail the local news media back home and offer them her videos and photos.
Utilize all of her social media sites
Posting her article along with the videos and photos
42
Which of the following is least likely to receive targeted advertisements?
Individuals using the web browser without the Do Not Track option
Users with strong passwords and multifactor authentication
Individuals using the web browser with the Do Not Track setting engaged
Users who visit only websites with a digital certificate
43
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
2,000
1,000
11
1
44
Seniors pay $20. Nonseniors pay $30. Which of the following must be true about the code that she writes
Selection is necessary, but looping is not.
Neither selection nor looping are necessary.
Looping is necessary, but selection is not.
Both selection and looping are necessary.
45
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
46
What are two aspects of efficiency?
execution time and length of code
memory usage and length of code
wall clock time and CPU time
execution time and memory usage
47
Which of the following can be represented by a single binary digit?
Light on / light off
Geographic location
Time
Date
48
Why are internet protocols used?
Internet protocols are specific to the hardware attached to the internet.
Internet protocols are needed to slow the growth of the internet.
Internet protocols make the internet scalable and encourage growth.
IPs are a set of rules to ensure the internet can transmit information
49
Why is cryptography essential to cybersecurity?
Cryptography secures internet communications
Cryptography secures internet communications
Used to prevent publicly accessible files on a server from being edited.
Not allow data on a server to be edited by ensuring the data’s intergrity
50
Which of the following is a true statement about data transmitted over the internet?
The domain name system (DNS) has been challenged by the DMCA
Packets are received in the same order that they are sent.
All data traveling over the internet is in binary.
Redundancy in the design of the internet is overseen by large companies
51
Which of the following best approximates the minimum possible time to run all three processes in series?
18
28
38
20
52
The following picture was taken by a smartphone.Which of the following is
NOT
metadata?
The Red, Green, and Blue values of the top left pixel
The filename
The date the photo was taken
The geographic location where the picture was taken
53
By switching from IPv4 to IPv6, how many more IP addresses will become available?
2^22 as many IP addresses
2^96 as many IP addresses
2^47 as many IP addresses
2^2 as many IP addresses
54
What will the following algorithm display after running the code below?
3
4
1
2
55
Which of the following outcomes is most likely to result from this simulation?
Understanding of how access to the Internet affects developing countries
Better understanding of how defend against phishing attacks
Understanding how a failed router in a network affects the flow of packets
Better understanding of how binary is used to represent data in packets
56
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
2
9
7
8
57
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.
58
Which of the following is NOT metadata for the picture?
The picture of the dog
The location where the picture was taken
The time the picture was taken
The memory space taken up by the picture
59
Bill receives an email from an address that appears to be his bank. Bill has been defrauded of which email scam
Spearing
Denial of Service
Phishing
Social Engineering
60
Which of the following lines of code would cause an error with a robot?sponses
CAN_MOVE (right)
NOT CAN_M0VE (forward)
CAN_MOVE (north)
NOT CAN_MOVE (left)
61
What does it mean to say that social media has "enhanced dissemination"?
Social media makes spreading an idea difficult
Social media has no effect on the ability to spread and share ideas
Social media makes spreading short, simplistic ideas easier
Social media makes spreading an idea easier and faster than in the past.
62
Which of the following statements are true about high-level programming languages? Select
two
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 must be used to execute commands
A high-level programming language often uses natural language elements.
63
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 translated into a language the computer understands.
Program code must be debugged by the compiler before it can ever run.
64
What should replace to make the following program return True when the first element is equal to the last element?
( list1 = list1 )
( list1[0] = list1[1] )
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[1] = list1[LENGTH(list1)] )
65
Which of the codes below will correctly swap the frog with the bear?
animal[1] = animal[2] -- animal[2] = animal[1]
temp = animal[1] -- animal[1] = animal[2] -- animal[2] = temp
animal[3] = animal[1] ----- animal[1] = animal[3]
temp = animal[1] ---- animal[1] = animal[3] ------ animal[3] = temp
66
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (right)
NOT CAN_M0VE (forward)
CAN_MOVE (north)
NOT CAN_MOVE (left)
67
Which of the following is a negative trade-off inherent in lossless compression?
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.
Some of the data will be lost and cannot be recovered.
68
What will the following program display?
The program is an infinite loop.
OOOXX
OXXOO
OXXOXXOXX
69
Which of the following statements are true about high-level programming languages?
A high-level programming language allows for code to be re-used.
A high-level programming language often uses natural language elements.
A high-level programming language does not ensure program reliability.
A high-level programming language must be used to execute commands
70
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)
Internet Protocol
Simple Mail Transfer Protocol
JavaScript Coding Protocol
Hypertext Transfer Protocol
71
What are two aspects of efficiency?
execution time and memory usage
execution time and length of code
memory usage and length of code
wall clock time and CPU time
72
A government agency publishes data from a recent experiment it conducted. How could making this data public be useful?
It allows the public to decide if the experiment costs too much
It allows the public to decide whether the experiment should have been done
It allows them to replicate the experiment
It enables any person to determine if the results are correct.
73
Which of the following describes an impact that machine learning has had on its given field?
Science-machine learning can be used to organize data
All of the above
ML can be used to determine the conditions that indicate a disease
Business-algorithms can be produced through machine learning
74
11010010 0000011 100001001 00001110 00000000 00000000. Find the error in the following low-level programming code.
The 17th 1 needs to be changed to a 0.
This is too difficult.
The 84th digit should be a 1.
The 34th 0 should be a 1.
75
What is displayed after running the algorithm below?
245
43
34
244
76
Her current connection speed is 700 kilobytes per second (kps). How long will the it take if her video is 400 megabytes
57.1 seconds
175 seconds
1.75 seconds
571 seconds
77
Which of the following is
NOT
indicative of a phishing attack?
A organization asks in an email to click on a link in
A virus pops up on your computer asking the user to call a phone number
Email with the user’s personal information directs the user to click a link
An email asks the user to call the phone number
78
a ← 1/3A b ← 1/3 If a does not equal b, what error?
Roundoff error
Overflow error
a will equal b on all computers
Hexadecimal conversion error
79
What type of error did the procedure suffer from?
Logical error
No error; the program works as intended
Runtime error
Syntax error
80
What is displayed as a result of executing the following code segment?
Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Moose Noodles Novack Benji
81
What line of code can replace <missing code> so the algorithm will work as intended?
list1 = 13
item ≠ 13
list1 ≠ 13
item = 13
82
Which of the following is an example of using many contributions to benefit society?
News aggregators take articles from many different sources
Simulation game determines the picture by randomly selecting images
Made freely available with contributions made by college professors.
A tech company has its users try out the beta version of their products
83
Is a binary search always the fastest search when searching for a number in a sorted list?
For a large list, linear searches are always faster.
For a large list, binary searches are always faster.
A binary search is always faster with a sorted list.
First pass of a linear search finds the correct number more quickly
84
Monica types the following web address, widgets.cs.fbhs.org, into the URL bar in her browser.
The .org name server will send the IP address of widgets.cs.fbhs.org
The widgets.cs.fbhs.org will send the IP address of widgets.cs.fbhs.org
The widgets will send the IP address of the widgets.cs name server.
The .org name server will send the IP address of the fbhs.org name server.
85
What does the following algorithm display?
When B is false, the algorithm displays “False.”
It always displays “False.”
When A is false, the algorithm displays “False.”
It always displays “True.”
86
What is displayed after running the algorithm below?
43
12
145
133
87
What can replace so the algorithm works as intended?
b <-- temp
b <-- a
temp <-- a
temp <-- b
88
What will the following code segment display?
5
11
Nothing will be displayed due to an error.
3
89
What is an example of a way that a “smart grid” could assist with human capabilities?
The grid could ensure that all computers on it are properly updated.
The grid could distribute power in the most efficient manner possible
The grid could prevent blackouts altogether.
The grid could control the temperature of an A/C or a heating unit directly
90
What could a single binary value represent?
If a light is on or off
Volume on a radio
Temperature in degrees Celsius
Time
91
What is returned by
cube(cube(2))
?
512
2
64
128