stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Lopez, Haylie AP Exam Review Flashcards | StudBud
Explore
/
Lopez, Haylie AP Exam Review
Lopez, Haylie 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
a code segment is a readable explanation in the source code of a computerprogram
True
False
2
What does the algorithm display?
12
4
5
3
3
Boolean value is true or false
False
True
4
which of the statements below BEST describes what will happen if ISP X, Host 3, and Host 11 are not working?
The Client will not receive any data due to the outage
ISPY gets an indication of failure and re-routes the data to a working host
Host 1 will compensate for the outage and route the data accordingly
Nothing will happen
5
TCP is the foundation of data communication for the World Wide Web
True
False
6
The findings from a project are typically presented using a graph as opposed to table or raw data. Why might this be?
Graphs can be easily placed into a document, while tables cannot
Graphs are able to show all of the detail necessary to understand data.
Graphs are fun to look at
Graphs can show trends that might not be easily seen with raw data.
7
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
2
8
9
1
8
If a does not equal b, what error has occurred?
Roundoff error
a will equal b on all computers
Hexadecimal conversion error
Overflow error
9
a substring is when the data type used to store data was notlarge enough to hold the data.
False
True
10
Convert 88
DEC
to a binary number
1010101BIN
1011000BIN
1100111BIN
1000001BIN
11
what will the code below display?
2 7
4 8
2 8
3 7
12
a variable is something that stays constant
False
True
13
is JavaScript Coding Protocol a function of the IETF (Internet Engineering Task Force)?
False
True
14
What will the following program display?
OXXOXXOXX
The program is an infinite loop.
OXXOO
OOOXX
15
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of fireflies during the summer months
Collecting recordings using ultrasonic microphones and sonograms of bats
Calculating PSAT scores for a school district
The behavior of mysterious and wonderful jellyfish on the beach or water
16
These drawings depict two fundamental cryptographic concepts.
Lexicographic and Asymmetric
Asymmetric and Symmetric
Hash Codes and Key Transfers
Symmetric and Steganography
17
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
24 24 24
12 12 12
18
What will the program below display?
All odd numbers between 3 and 12
All even numbers between 1 and 12
All even numbers between 3 and 12
All odd numbers between 1 and 12
19
Packets are received in the same order that they are sent.
True
False
20
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
Nothing will be displayed
2, 4, 6, 8, 10, 12, 14
21
what will be the output?
7
5
8
6
22
22 will be displayed
False
True
23
What is the code segment displaying?
0
17
60
4
24
what will the code dislay?
3
6
11
5
25
Which ofthe following will correctly replace /*missing code */ ?
NOT CAN_MOVE(forward)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_M0VE (right)
CAN_MOVE (right)
26
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
10
17
27
What could a single binary value represent?
what kind of car do you have?
volume
time
do you have a dog?
28
What percentage of the time will the program display an even number?
20%
80%
50%
25%
29
Why is it important to find an efficient solution to a problem?
An efficient solution makes it harder to copy an algorithm.
ensures that the results are correct.
An efficient solution can always be solved in a reasonable amount of time.
An efficient solution can make it easier to analyze larger data sets.
30
Which of the following is NOT metadata for a picture?
The memory space taken up by the picture
The picture
The location where the picture was taken
The time the picture was taken
31
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
4
2
8
14
32
An undecidable problem is one in which no algorithm can be constructed that always leads to a correct yes-or-no answer.
True
False
33
Which of the following best approximates the minimum possible time to run all three processes in series?
28
24
15
13
34
A logic error forces the program to crash
False
True
35
What binary number is equal to 10001
BIN
+3
DEC
?
11110BIN
11100BIN
10100BIN
10011BIN
36
Redundancy in the design of the internet is overseen by large companies that set the standards used.
True
False
37
Which of the following does NOT need to be considered when determining the credibility of a source?
Sponsorship of the article or publisher
Publisher’s reputation and credentials
Author’s reputation and credentials
Use of persuasive techniques within the source
38
What type of algorithm would be best used for fraud detection?
Heuristic algorithm
Brute force algorithm
Optimization algorithm
Searching algorithm
39
Why is it more effective to put procedures in a program than to repeat code?
Procedures make a program harder to edit
Procedures are guaranteed to work in every instance
Procedures allow for the code to be used in every language
procedures take up less space than repeating code, it is easier to read
40
Which of the following is
NOT
metadata?
The geographic location where the picture was taken
The Red, Green, and Blue values of the top left pixel
The date the photo was taken
The filename
41
What is the minimum number of lines that must be cut to isolate F completely?
3
6
2
7
42
Data compression can be used to reduce the size of a file for storage or transmission.
True
False
43
a argument is language that is used to pass information betweenfunctions or procedures
True
False
44
The Caesar cipher is an example of what type of encryption?
No key encryption
Home key encryption
Public key encryption
Symmetric encryption
45
Hardware, software, and humans are all needed for cybersecurity
False
True
46
Researchers have yet to discover any undecidable problems in computer science
False
True
47
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1000
2000
23
1
48
connection speed is 700 kilobytes per second approximately how long will the download take if her video is 400 megabytes
57.1 seconds
23.2 seconds
571 seconds
1.75 seconds
49
Which of the following illustrate ways that the internet facilitates collaboration
I only
II and III only
I, II, and III
I and III only
50
What are two aspects of efficiency?
wall clock time and CPU time
memory usage and length of code
wall clock time and CPU time
execution time and memory usage
51
What is displayed after the following algorithm is run?
100
20
50
0
52
What will be the value of x after this code segment executes?
For all values of x, x will decrease by 1.
For all values of x, x will remain unchanged.
values greater than 5 x will remain unchanged, other values x will decrease
greater than 5, x will increase by 1 all other values, x will decrease by 1
53
What is displayed as a result if the user inputs “Karel” to the program?
What is your name? Hello Karel
What is your name?HelloKarel
Hello Karel
What is your name?Hello Karel
54
IP stands for interconnected program
False
True
55
Which of the following can be represented by a single binary digit?
Light on / light off
Geographic location
Date
Time
56
A simulation for a color chooser should result in 25% BLUE. Which of the following could replace <missing condition>?
RANDOM(250, 1000) < 251
RANDOM(1, 4) < 2
RANDOM(1, 2) > 1
RANDOM(25, 50) > 50
57
Which of the following lines of code would cause an error with a robot?
NOT CAN_MOVE (left)
NOT CAN_M0VE (forward)
CAN_MOVE (right)
CAN_MOVE (north)
58
What type of error did the procedure suffer from?
runtime
logic
syntax
no error
59
how many connections need to be disconnected to isolate j
5
4
3
2
60
what is the value of RESULT?
always false
True when either A or B are true
always true
True when both A and B are true
61
What is the value of sum displayed after this algorithm is run?
4
24
0
error
62
All data traveling over the internet is in binary.
False
True
63
a nested conditional statement an if or if else statement inside another if else statement.
True
False
64
a program is a set of instructions that a computer can run.
False
True
65
an overflow error when the data type used to store data was notlarge enough to hold the data.
False
True
66
What should replace so the program below displays TRUE 60% of the time?
x MOD 2 = 0
x MOD 5 = 0
x MOD 2 = 1
x MOD 5 = 5
67
Why does program code have to be 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.
Program code is write-only until it is run through a compiler.
Program code must be debugged by the compiler before it can ever run.
68
is Simple Mail Transfer Protocol a function of the IETF (Internet Engineering Task Force)?
True
False
69
Which of the following considerations is likely to affect the ability of the program to process large data sets?
The amount of program documentation that should be minimized
How many program statements the program contains
How much memory the program requires to run
The order of the data put into the data set
70
program input is Data entered into program
False
True
71
What does the program return?
19
17
20
18
72
What is displayed after running the algorithm below?
12
133
43
145
73
is Hypertext Transfer Protocol a function of the IETF (Internet Engineering Task Force)?
False
True
74
A syntax error is when there is an incorrectly placed string or character
False
True
75
what will the code display?
Dog Golden Bandicoot Cat Fish
Golden Bandicoot Cat Fish
Dog Cat Fish
Dog Cat Fish Golden Bandicoot
76
a procedure is a small section of a program that performs a specific task.
False
True
77
An economist wants to understand changes in supply and demand affect the inflation. What is a benefit of a simulation
A simulation would be more cost-effective and easier to create
Simulations have as much of an effect on the real world
A simulation would account for every variable affecting supply and demand
Simulations can be run once so they are guaranteed to be close to real life
78
What will be displayed?
9 5 7
14 6
14
7 5 9
79
What is returned by
mystery (1, 2)
?
10
2
5
4
80
Which of the following statements are true about high-level programming languages?
A high-level programming language allows for code to be re-used.
A high-level programming language does not ensure program reliability.
A high-level programming language must be used to execute commands (× or ÷)
high-level programming language are more memory efficient
81
The procedure isFound(list, item) will return TRUE if an item is found in a list What will be displayed?
[4, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[1, 6, −4]
[ ]
82
Sort the following by levels of abstraction, from lowest to highest:
I, III, IV, II
I, IV, III, II
I, IV, II, III
I, II, III, IV
83
There is no algorithmic solution that solves all instances of the problem.
False
True
84
The code segment is intended to swap the variables a and b. What can replace so the algorithm works as intended
temp ← b
b ← a
temp ← a
b ← temp
85
For the following data structure, which search algorithm would work as intended to find the value 3
Linear search
Binary search
Bubble sort
Insertion sort
86
is Internet Protocol a function of the IETF (Internet Engineering Task Force)?
False
True
87
Programming the most elegant code is an investigation tool for designing programs
True
False
88
Identify the best sequence of steps she should take to select a plan.
I, III, IV, II
I, IV, II, III
I, Il, III, IV
III, I, II, IV
89
The domain name system (DNS) has been challenged by the Digital Millennium Copyright Act (DMCA).
False
True
90
Which of the following statements is
NOT
correct:
Logic gates are modeled by Boolean functions.
Logic gates are used to perform operations such as addition and subtraction
Binary data is processed by physical layers of computing hardware.
Hardware is the lowest level of abstraction.