stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Tyler Jaydien AP exam review Flashcards | StudBud
Explore
/
Tyler Jaydien AP exam review
Tyler Jaydien 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 displayed because of executing the code segment?
1 3 5 7 9
9
3 9
1 5 7
2
What could a single binary value represent?
Temperature in degrees Celsius
Time
If a light is on or off
Volume on a radio
3
Which of the following can be represented by a single binary number? Select two answers
Do you have a puppy?
What is the pos of an object in a grid of squares representing the position
What is the speed of a puppy chasing a squirrel?
Is your puppy named “Waffles”?
4
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x >= 9
x > 10
x >= 6
5
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 image quality will be less and will result in a blurry image.
The number and size of pixels will be less.
The file can be difficult to email and can take up lots of memory storage.
6
Which of the following can be represented by a single binary digit?
Age
Birthday
Time
Light on / light off
7
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 or H2O
Calculating PSAT scores for a school district
The behavior of fireflies during the summer months
Collecting recordings using ultrasonic microphones and sonograms of bats
8
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 knowledge on how to use technology
Lack of access to the technology due to affordability
9
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
Use of persuasive techniques within the source
Publisher’s reputation and credentials
10
The following program is intended to display the string 789. What type of error will the following procedure cause?
Logic error
Runtime error
No error
Syntax error
11
What percentage of the time will the program display an even number?
40%
50%
10%
20%
12
Find the error in the following low-level programming code.
The 17th 1 needs to be changed to a 0.
This is too difficult. To determine errors, use upper level lang
The 84th digit should be a 1.
The 34th 0 should be a 1.
13
Why are internet protocols used?
Select two answers.
Internet protocols make the internet scalable and encourage growth.
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.
14
What should replace in order to make the following program return True
( list1 = list1 )
( list1[1] = list1[LENGTH(list1)] )( list1[1] = list1[LENGTH(list1)] )
( list1[0] = list1[LENGTH(list1) – 1] )
( list1[0] = list1[1] )
15
What will the following code segment display?
Nothing will be displayed due to an error.
6
11
3
16
What will be the output of the following program?
14 6
14
9 5 7
7 5 9
17
Which best describes the role of TCP?
common protocol for encrypting and decrypting data transferring on the ret
The set of rules for the path packets taken on the fault-tolerant internet
Setting the rules for a num label assigned to each dev connected to the net
The foundation of data communication for the World Wide Web
18
What will the following program display?
OXXOO
The program is an infinite loop.
OXXOXXOXX
OOOXX
19
Which of the following is least likely to receive targeted advertisements?
Individuals using the web browser without the Do Not Track option
Users who visit only websites with a digital cert that blocks targeted ads
Users with strong passwords and multifactor authentication
Individuals using the web browser with the Do Not Track setting engaged
20
What will the following algorithm display after running the code below?
3
4
2
1
21
Which best describes the role of TCP?
The foundation of data communication for the World Wide Web
Setting the rules for a num label assigned to each dev connected to the net
common protocol for encrypting and decrypting data transferring on the ret
The set of rules for the path packets taken on the fault-tolerant internet
22
What is the value of sum displayed after this algorithm is run?
0
4
6
Error
23
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x <= 9
x <= 1
x < 1
24
What percentage of the time will the program display an even number?
50%
40%
20%
10%
25
procedure is inten to display the sum of all #s in the list.Instead,it records an error when trying to display the total
Logical error
Syntax error
Runtime error
No error; the program works as intended
26
Look at image below
Heuristic algorithm
Optimization algorithm
Searching algorithm
Brute force algorithm
27
Look at image below
No error. The program works as intended
Runtime error
Logical error
Syntax error
28
Look at image below
The grid could distribute power in the most efficient manner possible.
The grid could ensure that all computers on it are properly updated.
The grid could ensure that all computers on it are properly updated.
The grid could control the temperature of an A/C or a heating unit directly
29
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
1
100
0
30
Look at image below
item ≠ 13
item = 13
list1 = 13
list1 ≠ 13
31
What is the minimum number of binary digits needed to store the number 56?
3
5
6
1
32
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
33
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a AND b)
NOT b
a OR b
NOT(a OR a)
34
Which of the following best approximates the minimum possible time to run all five processes?
18 seconds
7 seconds
10 seconds
8 seconds
35
Which of the following test cases will NOT find the maximum number in the list?
list1[23, 67, 3]
list1[4]
list1[−23, −67, −3, −7]
list1[0, 0, 0, 0]
36
Which of the following is least likely to receive targeted advertisements?
Users who visit only websites with dig certificate that block targeted ads
Users with strong passwords and multifactor authentication
Which of the following is least likely to receive targeted advertisements?
Individuals using the web browser without the Do Not Track option
37
Look at image below
Insertion sort
Binary search
Bubble sort
Linear search
38
Limiting the information about the sites and stores that the user visits
Increasing the speed in ordering pizza online
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
39
sending a pic from your phone to your friend’s phone using a mobile app, what is true about the packets of info sent
Packets are received in the order that they are sent.
All of the above.
Packets are sent in multiple paths and can be received out of order.
Packets are sent by the quickest path possible in the correct order.
40
Which algorithm calculates average correctly?
Alg A calculates avg in all cases, while Alg B does not.Alg A calculates
Neither Algorithm A nor Algorithm B calculates average correctly
Both A and Algorithm calculate avg correctly,but Algorithm A more efficient
Algorithm B calculates average in all cases, while Algorithm A does not.
41
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
12 24 24
24 24 24
6 12 24
12 12 12
42
What is displayed after running the algorithm below?
133
145
43
12
43
An algorithm has nn number of steps. Which of the following would be considered a reasonable number of steps?
n!
3n
100n4
4n+8n2
44
what is displayed after the following algorithm is run?
100
32
132
50
45
Which of the following are benefits to having information be easily accessible and changeable?
II and III only
I, II, and III
I and II only
I only
46
look at image below
sim would be able to acc for every var that would affect supply and demand.
None of these
A sim would be more cost-effective and easier to create than an expert done
Sims can only be run once
47
procedure is inten to display the sum of all #s in the list.Instead,it records an error when trying to display the total
No error; the program works as intended
Logical error
Syntax error
Runtime error
48
What is the minimum number of lines that must be cut to isolate F completely?
8
0
4
6
49
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always true
True when either A or B are true
Always false
50
Find the error in the following low-level programming code.
This is too difficult. To determine errors, use upper level lang
The 17th 1 needs to be changed to a 0.
The 84th digit should be a 1.
The 34th 0 should be a 1.
51
What will the following code segment display?
1 4 7 10 9
10
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
52
code segment below is to swap the variables a and b using a temp variable, temp. What can replace so the algorithm works
1 <missing code> , 2 a<~~~ b, 3 b <~~~ temp
b <~~~~ temp
temp <~~~ a
temp <~~~ b
53
The procedure below is intended to display the sum of all numbers in the list. Instead, it records an error
Logical error
No error; the program works as intended
Syntax error
Runtime error
54
Which of the following is true about data compression?
Lossy compression cannot be used when sending pictures.
Data comp can be used to reduce the size of a file for storage or transmis.
Data compression can be used for pictures and video only.
Lossless data compression is the best compression under all conditions.
55
Multiple Choice
6
8
0
3
56
What will the following code segment display?
22
30
10
1
57
In what order will the numbers appear after running the algorithm below?
5, 6, 3, 3
5, 7, 4, 3.5
5, 6, −5, 6
5, 7, −6, 7
58
Consider the following code segment.
Golden Bandicoot Cat Fish
Dog Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Golden Bandicoot Cat Fish
59
Which of the following data is not provided directly by the user, or their device,but is necessary for the upgraded game
User name
Location of landmarks used in the game.
Speed traveling
GPS location of user
60
Researchers have developed a sim of packets traveling between computers in a network.which ans below is most likely
Better understanding of how defend against phishing attacks
Better understanding of how failed router in a network affects through net
Better understanding of how binary is used to represent data in packets
Bettr understanding of how access to the Internet affects developing cntrys
61
Look at image below
Lossy transformation
Frequency transformation
Addition transformation
Lossless transformation
62
How many lines need to be cut to completely isolate computer E from computer C?
0
6
3
8
63
Which of the following is a true statement about data transmitted over the internet?
Redundancy in the design of the internet is overseen by large companies
Packets are received in the same order that they are sent.
The (DNS) has been challenged by (DMCA)
All data traveling over the internet is in binary.
64
What is displayed as a result of executing the code segment?
Dog Cat Fish Golden Bandicoot
Dog Golden Bandicoot Cat Fish
Golden Bandicoot Cat Fish
Dog Cat Fish
65
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
66
Find the error in the following low-level programming code.
The 84th digit should be a 1.
The 34th 0 should be a 1.
This is too difficult. To determine errors, use upper level lang
The 17th 1 needs to be changed to a 0.
67
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 play the game in their spare time.
People are exercising.
Players are becoming more cultured by visiting artworks.
68
Which of the following is NOT metadata for the picture?
The time the picture was taken
The location where the picture was taken
The picture of the dog
The memory space taken up by the picture
69
Which of the following lists is
NOT
a candidate for a binary search?
A list of numbers from smallest to largest
A list of students in order of height
A list of words from a poem about sunshine in the order they appear
A list of words in a dictionary
70
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
71
code segment is intended to swap the variables a and b using a temp vari, temp. What can replace so the algorithm works
b <~~~~ a
temp <~~~ b
b <~~~ temp
temp <~~~ a
72
What is the code segment displaying?
17
68
34
0
73
Which of the following illustrate ways that the internet facilitates collaboration
I, II, and III
I and III only
II and III only
I only
74
simulation for a color chooser should result in 25% BLUE.Which of the following could replace <missing condition>? pic 2
RANDOM(5, 8) > 7
RANDOM(1, 2) > 1
RANDOM(1, 4) < 2
RANDOM(250, 1000) < 251
75
Which of the following is NOT an example of using citizen science as a possible solution?
Calculating PSAT scores for a school district
The behavior of fireflies during the summer months
The behavior of the mysterious and wonderful jellyfish on the beach or H2O
Collecting recordings using ultrasonic microphones and sonograms of bats
76
What is displayed as a result of executing the following code segment?
Waffle Moose Noodles Novack Benji
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Moose Benji Novack Waffle Noodles
77
Convert 88
DEC
to a binary number.
1000001BIN
1111000BIN
1010101BIN
1011000BIN
78
look at image below
10
100
1
1,000
79
The following picture was taken by a smartphone.
The Red, Green, and Blue values of the top left pixel
The date the photo was taken
The filename
The geographic location where the picture was taken
80
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
a OR b
NOT (a AND b)
a AND (a AND b)
81
What is the code below displaying?
2, 4, 6, 8, 10, 12, 14
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
3, 6, 9, 12, 15
Nothing will be displayed
82
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.
83
what is displayed after the following algorithm is run?
50
32
132
100
84
The following program is intended to display the string 789. What type of error will the following procedure cause?
No error
Syntax error
Runtime error
Logic error
85
What will the program segment display?
2
99
3
34
86
A sim for a color chooser should result in 25% BLUE. Which of the following could replace missing condition?
Select 2 an
RANDOM(5, 8) > 7
RANDOM(1, 4) < 2
RANDOM(1, 2) > 1
RANDOM(250, 1000) < 251
87
Colors are represented from 0 to 255. If each pixel in a photo is a combination of three color values, what is the min
24
256
512
8
88
Look at image below
IF(number = true AND randomNumber = drawing)
IF(number = randomNumber)
IF(number = true OR randomNumber = true)
IF(number = randomNumber)
89
Which of the following is
LEAST
likely to be included with the game?
Location of high-crime areas that should be avoided
What protocols the mobile device uses to connect to the internet
Location of highly trafficked roads and bridges
Information about what types of mobile devices can be used
90
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
How much time a person spent playing the game
The player’s score
How many locations the player visited
Recording whether the player was speeding when driving to a location.