stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Truong, Juston AP Exam Review Flashcards | StudBud
Explore
/
Truong, Juston AP Exam Review
Truong, Juston AP Exam Review
100 terms
·
StudBud Administration
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
True / False: Would
replace_even(n, list)
work?
True
False
2
What will the program below display?
2 7
2 8
4 8
3 7
3
True / False: Binary data is processed by physical layers of computing hardware.
False
True
4
What role does a compiler have in processing a high-level language?
The compiler is needed to translate code into machine code.
The compiler ensures that the program has no runtime errors.
The compiler speeds up the run time of a program.
The compiler checks for updates and installs programs onto the computer.
5
What will be displayed by
mystery(CSList)
and CSList being [’c’, ’o', ’m’, ’p’, ’u', ’t', ’e’, 'r]?
computer computer computer computer computer
cmptr cmptr cmptr
cmptr cmptr cmptr cmptr cmptr
computer computer computer
6
What is the order the steps should be performed in? Pick
2
answers
Step 1, Step 5, Step 3, Step 6, Step 2, Step 4
Step 1, Step 5, Step 6, Step 3, Step 4, Step 2
Step 5, Step 1, Step 6, Step 3, Step 2, Step 4
Step 5, Step 1, Step 2,Step 4, Step 6, Step 3
7
Which of the statements about metadata are true.
II, III, and IV only
I only
I, II, and IV only
All of the above
8
What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 3 and 12
All even numbers between 1 and 12
All odd numbers between 1 and 12
9
What will be displayed by
mystery( 3, myList)
and myList being
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
?
9 6 3 0
10 8 7 5 4 2 1
9 6 3
10 8 7 5 4 2 1 0
10
What is displayed by running the code segment?
11 3 8
3 3 6
3 11 3
8 4 6
11
Which of the following methods below can be used to mitigate the risk of possibly releasing PII in large data sets?
II, IV, and V only
I, II, III, and IV only
All of the above
I, II, and IV only
12
True / False: For values greater than 5, x will not change, and for all other values, x will decrease by 1.
False
True
13
True / False: Logic gates are used to perform operations such as addition and subtraction.
True
False
14
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
15
Which of the following protocol standardization is
NOT
a function of the
IETF (Internet Engineering Task Force)
?
Hypertext Transfer Protocol
Internet Protocol
JavaScript Coding Protocol
Simple Mail Transfer Protocol
16
Which of the storage methods below makes accessing data easier for people in multiple locations wanting to use the data
Cloud Drive
Mainframe Computer
USB Flash Drive
Magnetic Drive System
17
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 resources, ensuring results are better.
An efficient solution makes it harder to copy an algorithm.
An efficient solution can make it easier to analyze larger data sets.
18
Which of the following is true about redundancy on the internet?
II and III only
I only
I, II, and III
I and II only
19
Which of the following is a negative trade-off of lossless compression?
The image quality will be less and will result in a blurry image.
Some of the data will be lost and cannot be recovered.
The number and size of pixels will be less.
The file can be difficult to email and can take up lots of memory storage.
20
Which of the following can be represented by a single binary digit?
Date
Geographic location
Time
Light on / light off
21
An algorithm has 𝑛 number of steps. Which of the following would be considered a reasonable number of steps?
n!
100n4
3n
4n + 8n2
22
What is returned by
cube(cube(2))
?
64
8
128
512
23
What is the following program returning?
27
37
25
20
24
What will the following program display?
6 12 24
12 12 12
24 24 24
12 24 24
25
True / False: Logic gates are modeled by Boolean functions.
False
True
26
To convert a number from base 10 to base 8, you need to repeatedly subtract the largest possible powers of what?
2
9
8
7
27
Which answer is around the lowest possible time to run all 5 processes in parallel if 4 & 5 needs to run in series?
13 seconds
11 second
15 seconds
9 seconds
28
True / False: A high-level programming language often uses natural language elements.
False
True
29
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a OR b
NOT (a AND b)
b AND (a AND b)
a AND (a AND b)
30
What percentage of the time will the program display an even number?
40%
10%
20%
50%
31
Which of the following does
NOT
need to be considered when determining the credibility of a source?
Author’s reputation and credentials
Sponsorship of the article or publisher
Use of persuasive techniques within the source
Publisher’s reputation and credentials
32
True / False: A high-level programming language must be used to execute commands such as adding and multiplying.
False
True
33
True / False: Lossy formats are great to use when a file must be compressed & rebuilt to its exact pre-compressed form.
True
False
34
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 20, y is 20
x is 30, y is 40
35
What is returned by
mystery (1, 2)
?
10
2
8
4
36
Which code can replace to have the robot end up in the gray square?
Pick two answers.
FOR EACH item IN list
REPEAT 4 TIMES
REPEAT UNTIL (Goal_Reached)
REPEAT UNTIL x = 4
37
Which of the following is a cause of the digital divide?
Lack of knowledge on how to use technology
Lack of access to the technology due to affordability
All of the above
Lack of access to technology due to location
38
Which of the following will correctly replace /*missing code */ ?
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_MOVE (right)
NOT CAN_MOVE(forward)
CAN_MOVE (right)
39
Which of the following is
NOT
a technology advancement in law enforcement that is being used by officers in the field?
use of drones
networked police cars that have instant access to info on suspects
facial recognition software
software that allows for predictive policing
40
Sort the following by levels of abstraction, from lowest to highest:
I, II, III, IV
I, IV, II, III
I, IV, III, II
I, III, IV, II
41
True / False: Hardware is the lowest level of abstraction.
False
True
42
In some coding languages, the above code will result in an error. Why?
Value of the product will always be 0.
Limited range of integer values and mathematical operations.
Multiple levels of abstraction used oversimplified the coded.
Limited range for floating-point values and mathematical operations.
43
What is displayed as a result of executing the code segment?
Dog Cat Fish Golden Bandicoot
Dog Golden Bandicoot Cat Fish
Dog Cat Fish
Golden Bandicoot Cat Fish
44
Which of the following is true of effective collaboration?
All of the above
I, II, III, and V only
II, IV, and V only
I, III, and IV only
45
Find the error in the following low-level programming code.
The 84th digit should be a 1.
The 34th 0 should be a 1.
The 17th 1 needs to be changed to a 0.
This is too difficult to determine errors.
46
Which of the following below properly identify these concepts?
Symmetric and Steganography
Lexicographic and Asymmetric
Asymmetric and Symmetric
Hash Codes and Key Transfers
47
Which of the following lines of code would cause an error with a robot?
NOT CAN_MOVE (left)
CAN_MOVE (right)
NOT CAN_MOVE (forward)
CAN_MOVE (north)
48
What is displayed after running the algorithm below?
145
133
12
43
49
Why are internet protocols used?
Pick two answers.
Internet protocols are specific to the hardware attached to the internet.
Internet protocols are needed to slow the growth of the internet.
Internet protocols are rules that ensure the internet can work & send info
Internet protocols make the internet scalable and encourage growth.
50
What will y display?
20
16
15
0
51
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 5 = 0
x MOD 5 = 5
x MOD 2 = 1
52
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
1,000
1
2,000
53
Which of the following types of components is necessary for cybersecurity?
I only
I, II, and III
III only
I and II only
54
What will be the result of the displayed program?
14 6
6 14
9 5 7
7 5 9
55
What is the code segment displaying?
68
17
34
0
56
What will the following code segment display?
30
10
22
1
57
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
Hello Karel
What is your name?HelloKarel
58
Which of the following best approximates the minimum possible time to run all three processes in series?
9 seconds
15 seconds
4 seconds
28 seconds
59
True / False: A high-level programming language allows for code to be re-used.
False
True
60
Which of the following is
NOT
metadata?
The date the photo was taken
The Red, Green, and Blue values of the top left pixel
The file name
The geographic location where the picture was taken
61
Which of the characters, represented in binary as a byte, contains the most zeros?
K
.
C
p
62
What line of code can replace <missing code> so the algorithm will work as intended?
list1 = 13
list1 ≠ 13
item ≠ 13
item = 13
63
What is the value of sum displayed after this algorithm is run?
4
Error
6
0
64
If a does not equal b, what error has occurred?
a will equal b on all computers
Overflow error
Hexadecimal conversion error
Roundoff error
65
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
66
What is displayed after the following algorithm is run?
100
50
32
132
67
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x <= 9
x < 9
x < 1
x <= 1
68
Which of the following could
NOT
be a potential IP address?
128.198.232.65
174.260.45.144
54.116.188.246
92.11.198.113
69
Which of the following considerations is likely to affect the ability of a program to process large data sets?
How many program statements the program contains
How much memory the program requires to run
The amount of program documentation that should be minimized
The order of the data put into the data set
70
Which of the following are methods of DNS cache poisoning?
DNS Key Distribution
Masquerading
Rogue Servers
DNS Binding
71
What will the following code segment display?
11
Nothing will be displayed due to an error.
3
6
72
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a OR a)
a OR b
NOT(a AND b)
NOT b
73
If a client requests data from Server Alpha, but ISP X, Host 3, and Host 11 are not working. What happens?
Host 1 will compensate for the outage and route the data accordingly
The client will not receive any data due to the outage
ISP Y will get packets indicating a failure to Host 3 and re-route the data
74
Which of the following lists is
NOT
a candidate for a binary search?
A list of words from a poem about sunshine in the order of their appearance
A list of numbers from smallest to largest
A list of students in order of height
A list of words in a dictionary
75
What will the following procedure display?
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[1, 6, −4]
[ ]
76
Which algorithm calculates average correctly?
Neither A nor B calculates average correctly.
B calculates average in all cases, while A does not.
Both A and B calculate average correctly, but A is more efficient.
A calculates average in all cases, while B does not.
77
What type of error will the following procedure cause?
No error
Syntax error
Runtime error
Logic error
78
What will be the output of the following program?
14 6
14
7 5 9
9 5 7
79
What percentage of the time will the following program display a number?
10%
75%
20%
25%
80
What is the code below displaying?
3, 6, 9, 12, 15
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
81
Which of the following is
NOT
metadata for the picture?
The memory space taken up by the picture
The picture of the dog
The time the picture was taken
The location where the picture was taken
82
Does the code do the following?
False
True
83
What will the following program display?
OXXOO
OOOXX
OXXOXXOXX
The program is an infinite loop.
84
Which of the following is
NOT
an example of using citizen science as a possible solution?
The behavior of jellyfish on the beach and water
Calculating PSAT scores for a school district
Collecting recordings w/ ultrasonic microphones & sonograms of bats
The behavior of fireflies during the summer months
85
True / False: A high-level programming language does not ensure program reliability.
True
False
86
What does the following algorithm display?
It always displays “True".
When A is false, the algorithm displays “False.”
When B is false, the algorithm displays “False.”
It always displays “False".
87
What will the following algorithm display after running the code below?
2
3
1
4
88
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
89
What will the above program display?
Nothing due to an infinite loop
3 8 0
4 8 8
2 8 14
90
How many more IP addresses will become available, switching from IPv4, with 2
32
addresses to IPv6 with 2
128
addresses?
Twice as many IP addresses
296 as many addresses
22 as many IP addresses
96 as many IP addresses
91
What is the appropriate name for the procedure?
SPIN()
ESCAPE()
IS_TRAPPED()
CAN_ESCAPE()
92
What does the algorithm display?
7
5
4
3
93
What are two aspects of efficiency?
memory usage and length of code
execution time and memory usage
execution time and length of code
wall clock time and CPU time
94
Which algorithms can be used to find crimes that occurred in a certain neighborhood on a certain day?
Neither Algorithm I nor Algorithm II
Both Algorithm I and Algorithm II
Algorithm II only
Algorithm I only
95
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 6
x >= 6
x >= 9
x > 10
96
Which of the following illustrate ways that the internet facilitates collaboration
II and III only
I only
I and III only
I, II, and III
97
What will the following code segment display?
3
Nothing will be displayed due to an error.
11
6
98
Which of the following precautions will ensure that the other people will not be able to see your wireless network?
I, II, III, and IV
II, III, and IV
II and IV
I only
99
Which answer is around the lowest possible time to run all 5 processes if processes 4 & 5 must be run in series?
8
18
10
7
100
What is displayed because of executing the code segment?
1 5 7
3 9
9
1 3 5 7 9