stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Bui, Joshua AP Exam Review Flashcards | StudBud
Explore
/
Bui, Joshua AP Exam Review
Bui, Joshua 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
Which of the following
MUST
an algorithm be written or be converted into to be executed by a computer?
Pseudocode
Low-level machine language
Natural language
High-level language
2
What is the value displayed after the algorithm is run?
1
0
10
12
3
If you current connection speed is 700 kbps, approximately how long will a download take if a video is 400 mb in size?
175 seconds
57.1 seconds
1.75 seconds
571 seconds
4
Consider the following code segment. What will the executed code display?
All even numbers between 3 and 12
All odd numbers between 3 and 12
All odd numbers between 1 and 12
All even numbers between 1 and 12
5
Consider the two cryptography representations below. Which of the choices below properly identify these concepts?
Hash Codes and Key Transfers
Symmetric and Steganogrpahy
Asymmetric and Symmetric
Lexicographic and Asymmetric
6
Which code segment could replace
MISSING CODE
to make the procedure work as intended?
item MOD 5 = 0 AND item MOD 2 = 1
item MOD 5 = 0 OR item MOD 2 = 1
item MOD 2 = 0 AND item MOD 5 = 0
item MOD 2 = 1 AND item MOD 5 = 1
7
What is the minimum number of lines that must be cut to isolate F completely?
6
4
0
8
8
What is the value displayed after the algorithm is run?
0
10
12
1
9
Which of the following is an example of redundancy in a fault-tolerant routing system?
Backup machines for failover solutiosn
Multiple internet providers or wire channels
Load balancers for distributing website traffic
Multiply physical cables and routers
10
Which of the following is true about data compression?
Data compression can be used for pictures and video only.
Lossless data compression is the best compression under all conditions.
Data compression is used to reduce sizes of files for storage/transmission.
Lossy compression cannot be used when sending pictures.
11
What would the following code segment display if executed? DISPLAY (num MOD 10)
The integer value of num in its one's position
The quotient that results when the num value is divided by 10
Th integer value of num in its ten's position
The integer value currently stored in the variable num
12
Does the following program work as intended? If so, what is the result? If not, why?
Yes, the program works as intended and returns -1
Yes, the program work as intended, reutrning -200
No, the program does not work as intended; runtime error
No, it doesn't work as intended; result never changes and returns -3
13
What will be the output of the following program?
14 6
14
9 5 7
7 5 9
14
What is the code segment displaying?
68
34
17
0
15
What is the value displayed after the algorithm is run?
1
10
Nothing is printed due to an infinite loop.
0
16
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
17
Small chunks of information that have been carefully formed from larger chunks of information
Protocols
Packets
Routers
IP Addresses
18
What does the code segment display?
Nothing, runtime error
5
20
0
19
What will the following program display?
[ ]
[1, 1, 35]
[6, 76, 4, 98]
[1, 1, 35, 6, 76, 4, 98]
20
What will the following algorithm display after running the code below?
3
2
4
1
21
Which of the following is NOT an example of using citizen science as a possible solution?
Collecting recordings using ultrasonic microphones and bat sonograms
The behavior of the mysterious and wonderful jellyfish on the beach/water
Calculating PSAT scores for a school district
The behavior of fireflies during the summer months
22
Which of the following can be represented by a single binary digit?
Date
Time
Light on / Light off
Geographic Location
23
Which of the following is necessary for cybersecurity?
I.
Software,
II.
Hardware,
III.
Human
I and II only
I only
I, II, and III
III only
24
Consider the following.
I, II, and III
II only
I only
II and III
25
What does the following algorithm display?
It always displays "False"
When B is false, the algorithm displays "False"
It always displays "True"
When A is false, the algorithm displays "False"
26
If the variables onTime and absent both have the value false, what is displayed as a result of running the code segment?
Is anyone there?
Hello. Better late than never.
Better late than never.
Hello. Is anyone there?
27
What is the value of sum displayed after this algorithm is run?
Error
0
4
6
28
What is the value displayed after the algorithm is run?
12
9
1
0
29
A user inputs 5 for the value of
a
. What is a possible value of
c
? a <- INPUT, b <- RANDOM(
a
, 6), c <-
b
- 6
3
-1
1
-3
30
What will the following program display?
[0]
[ ]
[-35]
[-11]
31
In the following URL, what is the lowest level of the domain's syntax hierarchy? tovuti.net/ukurasa
net/ukurasa
tovuti.net/ukurasa
net
ukurasa
32
What is the value displayed after the algorithm is run?
0 2 4 6
8
2 4 6
6
33
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
7
9
8
2
34
In the following flowchart, what is the value of RESULT?
True when either A or B are true
Always true
True when both A and B are true
Always false
35
How do Internet packets travel to their destination?
Along the same path to stay in order
Timed to arrive at the destination in their correct order
Along a variety of paths
Router to router based on the Traveling Salesman algorithm
36
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.
37
Which of the following algorithms require
both
selection and iteration?
An algorithm that displays all the integers in a list
An algorithm that displays the sum of the integers in a list
An algorithm that displays only the negative integers in a list
An algorithm that displays the greater of two integers
38
Which of the following does
NOT
need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Author’s reputation and credentials
Use of persuasive techniques within the source
Sponsorship of the article or publisher
39
__________ is a computational model in which operations are performed in order one at a time.
Distributed Computing
Parallel Computing
Efficiency
Sequential Computing
40
What will the following program display?
0
16
12
35
41
What can replace
MISSING CODE
to make the function work as intended?
item MOD 15 = 0
item / 15 = 0
item MOD 15 = 1
item / 15 = 1
42
What is displayed after running the algorithm below?
145
133
43
12
43
What is displayed after the algorithm is run?
9
0
12
3
44
Consider the following code segment.
What is displayed as a result of executing the code segment?
Golden Bandicoot Cat Fish
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
45
Look at the following table below.
V
Y
A
L
46
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 6
x > 10
x < 6
x >= 9
47
Does the following program work as intended? If so, what is the result? If not, why?
No, the program does not work as intended; result starts at 0.
Yes, the program works as intended; it displays 3.
Yes, the program works as intended; it displays 1.
No, the program doesn't work as intended; the if should be "item > result"
48
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
2,000
1,000
1
49
An algorithm has
n
number of steps. Which of the following would be considered a reasonable number of steps?
4n+8n2
100n4
3n
n!
50
Which of the following codes will output a
TRUE
statement if executed?
((NOT(true AND false)) AND (false OR true))
((NOT (true)) OR (false AND true))
((true OR false) AND NOT (false OR NOT (true))
((true AND false) AND (false OR true))
51
What will the following code segment display?
11
Nothing will be displayed due to an error.
3
6
52
Order the following hardware from low-level abstraction to high-level abstraction. Video card, Transistor, Computer
Video card, transistor, and computer.
Transistor, computer, and video card.
Hardware does not have abstraction levels.
Transistor, video card, and computer.
53
What is bandwith?
The speed that data can be downloaded
The type of wireless access point in use at a location
The size of the cable that connects homes and businesses to the Internet
The amount of data that can be transmitted in a specified amount of time
54
What will the following program display?x ← 10arr ← ["I", "Love", "Puppies"]DISPLAY (arr[(x - LENGTH(arr))MOD 4])
Puppies
ArrayOutOfBoundsException
Love
I
55
The internet is built on open standards. In this context, what does "open" mean?
The standards are made freely available and can be used by anyone.
The standards cannot be utilized in proprietary software of any form.
The standards can be used in any program used exclusively to access the web
The official standards can be made, updated, and edited by anyone.
56
What will the following program display?
0
98
1
-98
57
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
A list of words from a poem about sunshine in the order they appear
58
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.
Program code must be translated into a language the computer understands.
It doesn’t, as the new program could be run directly from the code.
59
What will the following code segment display?
6
11
Nothing will be displayed due to an error
3
60
What is the purpose of the procedure below?
To find the amount of items in list that are equal to number
To find the amount of items in list
To find the amount of items in list that do not equal number
Nothing, compile-time error
61
What is returned by the procedure below?
To find the amount of items in list that equal number
To find the amount of items in list that are divisible by number
Nothing, compile-time error
Nothing, runtime error
62
What will the following program display?
4
13
0
35
63
Convert 88
dec
to a binary number.
1010101
1000001
1011000
1111000
64
For which of the following goals would it be more useful to analyze the data instead of the metadata?
To determine the users who post messages most frequently
To determine which posts from a user have received the most comments
To determine the topics that many users are posting about
To determine the time of dat that the site is most active
65
What will be the result of the displayed program?
7 5 9
9 5 7
6 14
14 6
66
What is the value displayed after the algorithm is run?
ODD ODD ODD
2 4 6
Nothing will be displayed.
EVEN EVEN EVEN EVEN
67
What can be done to make sure the code segments works as intended?
Add "temp ← x" above "x ← y" and replace y ← x with y ← temp
Add "temp ← x" below "x ← y"
Add "temp ← y" above "x ← y"
Nothing, the code works as intended
68
How does a computer resolve a domain name into an IP address?
It uses Border Gateway Protocol to get the address from a nearby computer
It asks a DNS server for the corresponding IP address
It creates an IP address for the domain, and shares it with the closest DNS
It scans addresses until it finds the one it’s looking for
69
What does the algorithm display?
5
4
3
7
70
Look at the following table below.
Searching through data
Sorting data
Deleting entries from data
Backing up data
71
What are two aspects of efficiency?
Execution time and length of code
Wall clock time and CPU time
Memory usage and length of code
Execution time and memory usage
72
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
73
What is displayed after the algorithm is run?
2
6
5
0
74
Consider the following program code. Which of the following best describes the result of running the program code?
The number 10 is displayed.
Nothing is displayed; the program results in an infinite loop.
The number 6 is displayed.
The number 0 is displayed.
75
Which of the following lines of code would cause an error with a robot?
CAN_MOVE(right)
CAN_MOVE(north)
NOT CAN_MOVE(forward)
NOT CAN_MOVE(left)
76
Consider the following code.
What is displayed because of executing the code segment?
3 9
9
1 5 7
1 3 5 7 9
77
You connect a new device to your Wi-Fi internet connection at home. What will happen next?
The device will be a assigned a new Web address
The device will be assigneda new device driver
The device will be assigned a new packet number
The device will be assigned a new IP address
78
Does the following program work as intended? If so, what is the result? If not, why?
No, the program does not work as intended; runtime error
Yes, the program works as intended; it displays -7.
Yes, the program works as intended; it displays 1
No, the program does not work as intended; result is always list[1]
79
Order the following programming languages from low-level language to high-level language. COBOL, Python, Machine Code
Python, Machine Code, and COBOL
Machine Code, COBOL, and Python
COBOL, Python, and Machine Code
All languages have equal level language.
80
At least how many connections must be damaged to prevent the client and server from communicating?
1
2
4
3
81
Look at the following chart below.
Input A must be true
Input A can be either true or false
There is no possible value of A that will cause the circuit to output true
Input A must be false
82
What should replace <missing condition> so that the program below display
TRUE
10% of the time?
x <= 9
x <= 1
x < 1
x < 9
83
The procedure isFound(list, item) will return TRUE if an item is found in a list. What will the procedure display?
[1, 6, −4]
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[ ]
84
You connect a new device to your Wi-Fi internet connection at home. What will happen next?
The device will be assigned a new packet number
The device will be assigned a new device driver
The device will be assigned a new Web address
The device will be assigned a new IP address
85
Which of the following code segments can replace
MISSING CODE
to make the procedure work as intended?
item > max
max > item
max = item
max >= item
86
According to the domain name system (DNS), which of the following is a subdomain of the domain example.com?
example.co.uk
about.example.com
example.com.org
example.org
87
Which command can replace <Missing Condition> to result in the last column of the table shown below?
NOT (a AND b)
b AND (a AND b)
a OR b
a AND (a and b)
88
What will the following program display?
0
1
76
98
89
What will the following program display?
OXXOO
OXXOXXOXX
OOOXX
The program is an infinite loop.
90
How many numbers will the following algorithm display?
0
100
10
An infinite amount
91
What is the following program returning?
25
27
37
20
92
How can consumers ensure that a website is not a phishing scam before making an Internet purchase?
Call the company directly to be safe
Use antivirus software and keep it up to date
Go to the website directly rather than clicking a link from an email
Use a firewall to block malware
93
Which of the following statements is
NOT
correct:
Logic gates are modeled by Boolean functions
Hardware is the lowest level of abstraction
Binary data is processed by physical layers of computing hardware
Logic gates are used to perform operations such as addition and subtraction
94
What does the following program display?
[1, 6, -4]
[-4, -98]
[-4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, -4]
95
Which of the following protocol standardization is NOT a function of the IETF (internet Engineering Task Force)?
Simple Mail Transfer Protocol
JavaScript Coding Protocol
Hypertext Transfer Protocol
Internet Protocol
96
What does the code segment return?
The number of odd items in list
Nothing, runtime error
The number of even items in list
The number of items in list
97
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 location where the picture was taken
The picture of the dog
98
What does scalability refer to in the context of the internet?
The number of computing devices connected to a network.
The capacity for the system to change in size and scale to meet new demands
The protocols used for transmitting data over the World Wide Web.
The speed at which data is transferred over a network.
99
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 1
x MOD 5 = 0
x MOD 5 = 5
x MOD 2 = 0
100
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 date the photo was taken
The filename
The geographic location where the picture was taken