stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
De Armas, Matthew AP Exam Review Flashcards | StudBud
Explore
/
De Armas, Matthew AP Exam Review
De Armas, Matthew 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
which search algorithm would work as intended to find the value 35?numbers[1, 43, 23, 65, 76, 34, 33, 12,35,3,5]
Bubble sort
Insertion sort
Binary search
Linear search
2
A browser contacts a server using IPv4 and pages a request for a website’s address. Which is NOT a potential response?
174.260.45.144
92.11.198.113
54.116.188.246
128.198.232.65
3
The procedure (list, item) will return TRUE if an item is found in a list What will the following procedure display?
[1, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[4, 6, −4]
[ ]
4
The following picture was taken by a smartphone.
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
5
Which of the following best approximates the minimum possible time to run all three processes in series?
38 seconds
8 seconds
10 seconds
20 seconds
6
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 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.
7
What protocol below guides the rules about how data
DNS
HTTP
TCP
FTP
8
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 highly trafficked roads and bridges
Location of high-crime areas that should be avoided
9
What should replace 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
10
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[2]animal[2] = temp
temp = animal[1]animal[1] = animal[3]animal[3] = temp
animal[1] = animal[2]animal[2] = animal[1]
11
If a does not equal b, what error has occurred?
Roundoff error
a will equal b on all computers
Overflow error
Hexadecimal conversion error
12
What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 1 and 12
All odd numbers between 1 and 12
All even numbers between 3 and 12
13
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
3^n
4^n+8n^2
100n^4
n!
14
What could a single binary value represent?
If a light is on or off
Time
Volume on a radio
Temperature in degrees Celsius
15
What is displayed as a result if the user inputs “Karel” to the program?
What is your name? Hello Karel
Hello Karel
What is your name?HelloKarel
What is your name?Hello Karel
16
Which of the following data is not providedbut is necessary for the upgraded game to operate as described?
Location of landmarks used in the game.
Speed traveling
GPS location of user
User name
17
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 many locations the player visited
How much time a person spent playing the game
The player’s score
18
What would be a good use of constants when initializing variables at the beginning of a program?
I and II only
II and III only
I and III only
I, II, and III
19
What type of algorithm would be best used for fraud detection?
Searching algorithm
Brute force algorithm
Optimization algorithm
Heuristic algorithm
20
What is displayed as a result of executing the following code segment?
Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Noodles Moose Novack Benji
Dog Waffle Moose Noodles Novack Benji
21
Which of the following can be represented by a single binary digit?
Geographic location
Date
Time
Light on / light off
22
7. Which is the largest number that will NOT result in an overflow error in a five-bit
33
30
34
32
23
What is the minimum number of bits needed to store a single pixel?
8
24
256
512
24
What will the following code segment display?
1
10
22
30
25
What will the following algorithm display after running the code below?
3
2
1
4
26
What is the value of sum displayed after this algorithm is run?
Error
0
4
6
27
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
28
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
list of words from a poem about sunshine in order they appear in the poem
29
Which of the following considerations is likely to affect the ability of the program to process large data sets?
The order of the data put into the data set
The amount of program documentation that should be minimized
How much memory the program requires to run
How many program statements the program contains
30
Which of the following best approximates the minimum possible time to run all five processes?
8 seconds
7 seconds
10 seconds
18 seconds
31
What will be the result of the displayed program?
9 5 7
14 6
7 5 9
6 14
32
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
0
1
8
100
33
Why is it important to find an efficient solution to a problem?
An efficient solution can always be solved in a reasonable amount of time.
An efficient solution uses more computer resources
An efficient solution makes it harder to copy an algorithm.
An efficient solution can make it easier to analyze larger data sets.
34
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 1
x < 9
x < 1
x <= 9
35
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1,000
2,000
11
1
36
What is the minimum number of lines that must be cut to isolate F completely?
0
4
8
6
37
5. Which of the following is an example of metadata that serves to be descriptive of the content of a file?
Program used to read the file
A. User-selected tags (e.g., "Vacation," "Personal Work")
B. File size
Date created
38
Which best describes the role of TCP?
The foundation of data communication for the World Wide Web
A protocol for encrypting and decrypting data transferring on the internet
The set of rules for the path packets taken on the fault-tolerant internet
Setting the rules for a numerical label assigned to each device
39
What does the algorithm display?
5
4
3
7
40
What will the following code segment display?
11
Nothing will be displayed due to an error.
6
3
41
Which of the following best approximates the minimum possible time to run all three processes in series?
4 seconds
15 seconds
28 seconds
9 seconds
42
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
12 24 24
6 12 24
12 12 12
24 24 24
43
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
Event sensing; an event would be the user pushing a button or screen
GPS location
44
Which of the following illustrate ways that the internet facilitates collaboration
II and III only
I, II, and III
I and III only
I only
45
What does the following algorithm display?
It always displays “True.”
When B is false, the algorithm displays “False.”
It always displays “False.”
When A is false, the algorithm displays “False.”
46
Which of the following is true about redundancy on the internet?
I only
II and III only
I and II only
I, II, and III
47
What role does a compiler have in processing a high-level language?
needed to change the code to machine code for the computer can understand
The compiler checks for updates and installs programs onto the computer.
The compiler speeds up the run time of a program.
The compiler ensures that the program has no runtime errors.
48
What will y display?
20
16
0
15
49
What is displayed after the following algorithm is run?
132
50
32
100
50
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always false
Always true
True when either A or B are true
51
What is the minimum number of binary digits needed to store the number 56?
3
5
1
6
52
Which of the following statements are true about undecidable problems in computer science?
II and III
I and II
I only
I, II, and III
53
Which of the following is a cause of the digital divide?
All of the above
Lack of access to the technology due to affordability
Lack of knowledge on how to use technology
Lack of access to technology due to location
54
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a AND (a AND b)
NOT (a AND b)
b AND (a AND b)
a OR b
55
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 file can be difficult to email and can take up lots of memory storage.
The number and size of pixels will be less.
56
What will the following algorithm display?a ← 13 MOD
0
13
26
8
57
What type of error did the below procedure suffer from?
Syntax error
Logical error
Runtime error
No error. The program works as intended
58
Which of the following best approximates the minimum possible time to run all five processes in parallel?
15 seconds
11 seconds
13 seconds
9 seconds
59
How many lines need to be cut to completely isolate computer E from computer C?
0
8
6
3
60
In what order will the numbers appear after running the algorithm below?
5, 6, 3, 3
5, 6, −5, 6
5, 7, 4, 3.5
5, 7, −6, 7
61
What will the following program display?
OXXOXXOXX
OXXOO
The program is an infinite loop.
OOOXX
62
Which of the following types of components is necessary for cybersecurity?
I and II only
I only
III only
I, II, and III
63
Which of the following test cases will NOT find the maximum number in the list?
list1[0, 0, 0, 0]
list1[4]
list1[23, 67, 3]
list1[−23, −67, −3, −7]
64
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.
People are exercising.
Players play the game in their spare time.
Players are becoming more cultured by visiting artworks.
65
The following program is intended to display the string 789. What type of error will the following procedure cause?
Logic error
No error
Runtime error
Syntax error
66
What is displayed as a result of executing the code segment?
Dog Golden Bandicoot Cat Fish
Dog Cat Fish
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
67
What percentage of the time will the following program display a number?
75%
20%
25%
10%
68
What is the following program returning?
20
25
27
37
69
Which of the following is a trade-off inherent in lossy compression ease of handling?
image size(pixels)
smaller file size(bytes)
image quality
viewing ability
70
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.
No
A binary search is always faster with a sorted list.
For a large list, binary searches are always faster.
71
What is the code segment displaying?
34
68
17
0
72
What will be the output of the following program?
9 5 7
14
14 6
7 5 9
73
Which of the following can metadata use to improve the use of actual data?
all of the above
can be used to keep track of the source of a document
can be used to determine the way that those videos should be presented
Files can be sorted by date of creation to make finding an old file
74
Which of the following is NOT metadata for the picture?
The memory space taken up by the picture
The time the picture was taken
The picture of the dog
The location where the picture was taken
75
What is displayed after running the algorithm below?
145
43
12
133
76
What will the following code segment display?
10
1 4 7 10 9
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
77
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 domain name system challenged by the Digital Millennium Copyright Act
Redundancy is overseen by large companies that set the standards
78
Which of the following does NOT need to be considered when determining the credibility of a source?
Author’s reputation and credentials
Publisher’s reputation and credentials
Sponsorship of the article or publisher
Use of persuasive techniques within the source
79
What should replace <> to return True when the first element of the array is equal to the last element of the array?
( list1[1] = list1[LENGTH(list1)] )
( list1[0] = list1[1] )
( list1 = list1 )
( list1[0] = list1[LENGTH(list1) – 1] )
80
Which of the following is true about data compression?
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions
Data compression can be used for pictures and video only.
used to reduce the size of a file storage or transmission transmission
81
When sending a picture from your phone to your friend’s phone,what is true about the packets of information sent?
All of the above.
Packets are received in the order that they are sent.
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.
82
What will the following algorithm display?a ← 26 MOD 3b ← 7 MOD a
0
26
1
13
83
What will the following code segment display?
11
6
3
Nothing will be displayed due to an error.
84
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x > 10
x >= 6
x >= 9
85
What will the program segment display?
2
34
99
3
86
What is the code below displaying?
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
3, 6, 9, 12, 15
87
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT b
a OR b
NOT(a OR a)
NOT(a AND b)
88
When should a heuristic algorithm be used?
check which files have been exposed to a virus before actual checking files
When finding the quickest way to drive from Orlando, Florida
When calculating the average score for the national SAT test
When finding the lifetime batting average of Mookie Wilson
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 control the temperature of an A/C or a heating unit directly
The grid could prevent blackouts altogether.
The grid could distribute power in the most efficient manner possible
90
What will the following algorithm display?a ← 26 MOD
0
13
26
8