stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Nunez, Aiden AP Exam Review Flashcards | StudBud
Explore
/
Nunez, Aiden AP Exam Review
Nunez, Aiden 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
Why does program code have to be run through a compiler?
Program code is write-only until it is run through a compiler.
Program code must be translated into a language the computer understands.
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.
2
Which of the following can metadata use to improve the use of actual data?
All of the above.
Files can be sorted by date of creation to make finding and old file easier
The lengths of videos can be used to determine the way they are presented.
The author field in a document helps keep track of the source of a file.
3
Which of the following is not provided directly by the user but is necessary for the upgraded game to work as intended?
Location of landmarks used in the game.
GPS location of user
Speed traveling
User name
4
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 5 = 5
x MOD 5 = 0
x MOD 2 = 1
5
What will the following code segment display?
6
Nothing will be displayed due to an error.
11
3
6
What is the minimum number of binary digits needed to store the number 56?
3
5
1
6
7
Which of the following is a cause of the digital divide?
All of the above
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
8
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Internet Protocol
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
JavaScript Coding Protocol
9
How many lines need to be cut to completely isolate computer E from computer C?
6
3
4
2
10
What will the following algorithm display?
2
0
7
1
11
Consider the following.
Cookies are used to acquire users’ private encryption keys.
None of these.
Cookies are responsible for spam and create pop-up advertisements.
Info collected about you might be used to brand you within a certain group.
12
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
8
2
9
7
13
A user inputs 5 for the value of a. What is a possible value of c?
1
-1
-3
3
14
What will be the values of x and y after this code segment executes?
x is 40, y is 40
x is 40, y is 30
x is 30, y is 40
x is 20, y is 20
15
When access to the Internet is unequal based on geographic or socioeconomic reasons, it's referred to as the...
Internet Divide
Financial Divide
Digital Divide
Distance Divide
16
Consider the following.
10 8 7 5 4 2 1
9 6 3
9 6 3 0
10 8 7 5 4 2 1 0
17
Which of the following are benefits to having information be easily accessible and changeable?
II and III only
I and II only
I only
I, II, and III
18
What will the following code segment display?
10
30
1
22
19
Convert 88
DEC
to a binary number.
1011000BIN
1111000BIN
1000001BIN
1010101BIN
20
What is the minimum number of lines that must be cut to isolate F completely?
6
8
4
0
21
Which search term below would provide the most specific results on the wild mustangs of the west?
Site: Mustang
"Mustang, not the car"
Mustang -car
Mustang NOT car
22
Consider the following.
Addition transformation
Lossless transformation
Lossy transformation
Frequency transformation
23
Which of the following is NOT metadata for the picture?
The picture of the dog
The location where the picture was taken
The memory space taken up by the picture
The time the picture was taken
24
how can this code be arranged to display the difference of the sqaures of two user-inputted numbers?
1, 2, 4, 5, 3
2, 4, 3, 5, 1
4, 2, 5, 1, 3
1, 2, 3, 4, 5
25
Which of the following is a way to protect data containing personal information?
Compression
Simulation
Encryption
None of these.
26
True or false: Binary search is always faster than linear search.
They are the same thing.
False
There is no such thing as Binary search or Linear search
True
27
Which of the following MUST an algorithm be written or be converted into to be executed by a computer?
High-level programming language
Natural Language
Low-level programming language
Pseudocode
28
The following program is intended to display the string 789. What type of error will the following procedure cause?
Runtime Error
Syntax Error
No Error
Logic Error
29
What will be printed when this algorithm is run?
Star Fruit
Pineapple Kumquat Star Fruit
Pineapple
Kumquat
30
In the following flowchart, what is the value of RESULT?
True when either A or B are true
Always true
Always false
True when both A and B are true
31
Which form of compression is used when no data shoudl be lost?
Lossless Compression
Lost Compression
Lossy Compression
Lossless Combustion
32
What is the decimal equivalent to 1010
BIN
?
10
16
8
12
33
What is displayed by running the code segment?
11 3 8
8 4 6
3 3 6
3 11 3
34
Why is it important that algorithms be executed in a reasonable time?
Algorithms that don't execute in a reasonable time will break the computer
This ensures that the algorithm is capable of handling data it is given.
This ensures that the algorithm is capable of finding an answer.
Algorithms that don't execute in a reasonable time will be rejected.
35
What is displayed as a result of executing the following code segment?
Moose Benji Novack Waffle Noodles
Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Dog Waffle Moose Noodles Novack Benji
36
Which of the following is true about data compression?
Data compression can be used to reduce the size of a file.
Data compression can be used for pictures and video only.
Lossless data compression is the best compression under all conditions.
Lossy compression cannot be used when sending pictures.
37
"If" statements only execute their code segements if...
None of these.
The condition is False
The condition is True or False
The condition is True
38
In what order will the numbers appear after running the algorithm below?
5, 6, 3, 3
5, 7, −6, 7
5, 7, 4, 3.5
5, 6, −5, 6
39
What will the following program display?
0
16
35
13
40
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 6
x >= 9
x > 10
x < 6
41
What will be the result of the displayed program?
9 5 7
7 5 9
14 6
6 14
42
What is displayed as a result of executing the code segment?
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Golden Bandicoot Cat Fish
43
Consider the following.
Wiki
Webopedia
RSS Feed
Newsgroup
44
What will the following program display?
Love
Puppies
I
ArrayOutOfBoundsException
45
What is the code segment displaying?
17
34
68
0
46
Consider the following.
I only
II and IV
II, III, and IV
I, II, III, and IV
47
Which of the following statements describe the major building blocks of algorithms?
II and III
I only
I, II, and III
I and II
48
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[3, 5, 11, 6]
numbers[0, 1, 35, 6]
49
What type of search is most effiecient when it comes to sorted lists?
Binary search
Decimal search
Linear Search
Exponential Search
50
What is the difference between Modulus and Division
none of these
Division gives the quotient, and modulus gives the remainder
They both do the same thing.
Modulus gives the remainder, division gives quotient.
51
Below is a truth table for all possible values of a and b. Which of the following can replace <missing condition>?
(A OR B)
(A OR NOT(A))
(A AND B)
(A AND NOT(A))
52
What percentage of the time will the program display an even number?
20%
10%
50%
40%
53
An algorithm has n number of steps. Which of the following would NOT be considered a reasonable number of steps?
n2
16n
10000n
n
54
What is displayed as a result if the user inputs “Karel” to the program?
What is your name?HelloKarel
What is your name? Hello Karel
What is your name?Hello Karel
Hello Karel
55
What will the following code segment display?
10
Nothing will be displayed due to the error index out of bounds.
1 4 7 10 9
9 10 7 4 1
56
Which of the following would NOT be an appropriate name for a variable in an algorithm?
daysPassed
hoursLeft
Variable
totalDistance
57
When sending a picture to another device, what is true about the packets of information sent?
Packets are received in the order that they are sent.
Packets are sent by the quickest path possible in the correct order.
Packets are sent in multiple paths and can be received out of order.
All of the above.
58
Sort the following by levels of abstraction, from lowest to highest:
I, IV, III, II
I, II, III, IV
I, III, IV, II
I, IV, II, III
59
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
How many locations the player visited
The player’s score
How much time a person spent playing the game
Recording whether the player was speeding when driving to a location.
60
Which of the following is least likely to receive targeted advertisements?
Individuals using the web browser without the Do Not Track option
None of these.
Individuals using the web browser with the Do Not Track setting engaged
Users with strong passwords and multifactor authentication
61
What can be represented by a bianary digit?
True / False
Height
Age
RGB Values
62
Which of the following statements is
NOT
correct:
Logic gates are used to perform operations like 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.
63
What protocol below guides the rules about how data are subdivided into packets before transmission?
TCP
DNS
FTP
HTTP
64
What is an example of sharing images and allowing individuals to scan them for certain features?
Citizen Science
Contaminated Research
Moore's Law
Heuristics
65
What does the algorithm display?
7
4
5
3
66
What type of compression would be best in a situation where exact data isn't necessary?
Lossless Compression
Inacccurate Compression
Lossy Compression
Loser Compression
67
Consider the following.
10
100
1
1000
68
How long would it take to download a 400 megabyte video at a speed of 700 kilobytes per second?
57.1 seconds
571 seconds
175 seconds
1.75 seconds
69
Why might a programmer decide to make a portion of an algorithm heuristic?
Heuristics make an algorithm much harder to copy.
Heuristics are inaccurate, but they run quicker.
Heuristics are more accurate, so adding them makes a stronger algorithm.
Heuristics are always easier to add into a program.
70
What is the lowest level of abstraction?
Raw code
pseudocode
Hardware
an interface
71
What is the maximum number of searches required if using a linear search on list containing 49 numbers?
1
49
0
2
72
What is displayed at the end of the algorithm?
Alligator
Elephant Alligator Ostrich
Elephant
Alligator Ostrich
73
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 1
x < 1
x <= 9
x < 9
74
What will the program above display?
4 8
2 7
2 8
3 7
75
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
76
Consider the following.
How many program statements the program contains
The amount of program documentation that should be minimized
How much memory the program requires to run
The order of the data put into the data set
77
Which of the following is an example of metadata that describes the content of a file?
User-selected tags (e.g., "Vacation," "Personal Work")
Date created
File size
Program used to read the file
78
What will the following algorithm display?
2
39
0
Nothing
79
Consider the following.
Offering products and services that are more relevant to the user
Limiting the information about the sites and stores that the user visits
Not here.
Both of these.
80
The code segment below is intended to swap the variables a and b. What can replace <missing code>?
temp <-- b
b <-- a
b <-- temp
temp <-- a
81
Consider the following code segment:
x will always increase by 1.
For all values of x, x will decrease by 1.
For all values of x, x will remain unchanged.
None of these
82
Which best describes the role of TCP?
The foundation of data communication for the World Wide Web
A common protocol for encrypting/decrypting data transferring online.
The set of rules for the path packets taken on the fault-tolerant internet
Not here.
83
How many times will "fish" be displayed?
1
3
2
4
84
Which of the following lines of code would cause an error with a robot?
NOT CAN_MOVE (left)
NOT CAN_M0VE (forward)
CAN_MOVE (north)
CAN_MOVE (right)
85
What will the executed code display?
All even numbers between 1 and 12
All odd numbers between 1 and 12
All even numbers between 3 and 12
All odd numbers between 3 and 12
86
Consider the following.
Neither selection nor looping are necessary.
Selection is necessary, but looping is not.
Both selection and looping are necessary.
Looping is necessary, but selection is not.
87
What is displayed because of executing the code segment?
3 9
1 5 7
1 3 5 7 9
9
88
What would the following algorithm display?
2
26
13
0
89
What is the minimum number of searches required if using a linear search on list containing 49 numbers?
49
2
0
1
90
If 1 pixel in a photo is a combination of 3 color values (255), what's the minimum number of bits needed for 1 pixel?
8
512
256
24