stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Elias, Adam AP Exam Review Flashcards | StudBud
Explore
/
Elias, Adam AP Exam Review
Elias, Adam 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 of the following is true about redundancy on the internet?
I only
II and III only
I and II only
I, II, and III
2
What could a single binary value represent?
If a light is on or off
Temperature in degrees Celsius
Volume on a radio
Time
3
What type of error did the procedure below suffer from?
No error. The program works as intended.
Runtime error
Syntax error
Logical error
4
What is the following program returning?
25
27
20
37
5
What will be the values of x and y after this code segment executes?
x is 40, y is 30
x is 30, y is 40
x is 20, y is 20
x is 40, y is 40
6
Which of the following is true about data compression?
Data compression can be used to reduce the size of a file.
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and videos only.
Lossy compression cannot be used when sending pictures.
7
Which of the following statements are true about undecidable problems in computer science?
II and III
I only
I and II
I, II, and III
8
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, it finds the correct number more quickly
A binary search is always faster with a sorted list.
For a large list, binary searches are always faster.
9
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
1
100
0
10
In what order will the numbers appear after running the algorithm below?
5, 6, −5, 6
5, 6, 3, 3
5, 7, −6, 7
5, 7, 4, 3.5
11
Data traveling on the internet is broken down into small packets. What protocol below guides the rules about how data
TCP
FTP
DNS
HTTP
12
What will the following code segment display?
11
3
Nothing will be displayed due to an error.
6
13
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Sponsorship of the article or publisher
Author’s reputation and credentials
Use of persuasive techniques within the source
14
What will the following code segment display?
1 4 7 10 9
10
Nothing will be displayed due to the error index being out of bounds.
9 10 7 4 1
15
What will the following algorithm display after running the code below?
4
2
3
1
16
The procedure isfound (list, item) will return TRUE if an item is found in a list What will it display?
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[ ]
[1, 6, −4]
[4, 6, −4]
17
When should a heuristic algorithm be used?
When determining which files could have been exposed to a virus
When fidning the quickest way to a destanation
When calculating the average score for the national SAT test
When finding the lifetime batting average of Mookie Wilson
18
If a does not equal b, what error has occurred?
a will equal b on all computers
Overflow error
Roundoff error
Hexadecimal conversion error
19
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
20
Which of the following precautions will ensure that the other residents will not see your wireless network?
II, III, and IV
I only
I, II, III, and IV
II and IV
21
Which of the following is a cause of the digital divide?
Lack of access to the technology due to affordability
Lack of access to technology due to location
Lack of knowledge on how to use technology
All of the above
22
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
esponses
Picture of the player
GPS location
Event sensing; an event would be the user pushing a button or screen
Age of the player
23
What percentage of the time will the following program display a number?
10%
20%
75%
25%
24
What is displayed as a result of executing the code segment?
Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
Dog Golden Bandicoot Cat Fish
25
What does the algorithm display?
7
3
4
5
26
What will be the output of the following program?
7 5 9
9 5 7
14 6
14
27
Which of the following can be represented by a single binary digit?
Time
Date
Light on / light off
Geographic location
28
Which of the following is a negative trade-off inherent in 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 file can be difficult to email and can take up lots of memory storage.
The number and size of pixels will be less.
29
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 9
x <= 9
x <= 1
x < 1
30
Which of the following is
LEAST
likely to be included with the responses
Location of high-crime areas that should be avoided
What protocols the mobile device uses to connect to the internet
Location of highly trafficked roads and bridges
Information about what types of mobile devices can be used
31
What will the program display?
2 8 14
3 8 0
4 8 8
Nothing due to an infinite loop
32
Convert 88DEC to a binary number.
1010101BIN
1111000BIN
1011000BIN
1000001BIN
33
Consider the following code segment, which uses the variables x, y, and z. What will the following program display?
24 24 24
12 24 24
12 12 12
6 12 24
34
What does the following algorithm display?
When A is false, the algorithm displays “False.”
When B is false, the algorithm displays “False.”
It always displays “True.”
It always displays “False.”
35
Which of the following illustrate ways that the internet facilitates collaboration
I only
I, II, and III
II and III only
I and III only
36
What is displayed as a result if the user inputs “Karel” to the program?
What is your name?Hello KarelWhat is your name?, , Hello Karel
What is your name? Hello Karel
What is your name?HelloKarel
Hello Karel
37
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 they appear
A list of words in a dictionary
A list of numbers from smallest to largest
A list of students in order of height
38
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?Responses
1,000
2,000
11
1
39
Which of the following is NOT metadata for the picture?
The location where the picture was taken
The picture of the dog
The time the picture was taken
The memory space is taken up by the picture
40
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what
9
2
7
8
41
What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 3 and 12
All odd numbers between 3 and 12
All odd numbers between 1 and 12
42
Why is it important to find an efficient solution to a problem?
An efficient solution can make it easier to analyze larger data sets.
efficient solution uses more resources,that ensures the results are correct
An efficient solution makes it harder to copy an algorithm.
An efficient solution can always be solved in a reasonable amount of time.
43
What percentage of the time will the program display an even number
?
40%
20%
10%
50%
44
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 AND b)
NOT(a OR a)
45
These drawings depict two fundamental cryptographic concepts. Which of the choices properly identifies these concepts
Lexicographic and Asymmetric
Symmetric and Steganography
Hash Codes and Key Transfers
Asymmetric and Symmetric
46
What will y display?
16
0
20
15
47
What will be displayed by the
mystery ( 3, mylist)?
9 6 3 0
9 6 3
10 8 7 5 4 2 1 0
10 8 7 5 4 2 1
48
What is displayed because of executing the code segment?
1 5 7
9
1 3 5 7 9
3 9
49
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of fireflies during the summer months
Behavior of the mysterious and wonderful jellyfish on the beach or water
Calculating PSAT scores for a school district
Collecting recordings using ultrasonic microphones and sonograms of bats
50
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
n!
3n
100n4
4n + 8n2
51
Which of the following can be represented by a single binary number?
Select two answers
Is your puppy named “Waffles”?
Do you have a puppy?
what is the top speed of your car
What is the speed of a puppy chasing a squirrel?
52
Which of the following is a true statement about data transmitted over the internet?
The DNS has benn challenged by the DMCA
Reduncy in the desgin of the internet is overseen by large companies
All data traveling over the internet is in binary.
Packets are received in the same order that they are sent.
53
What will be the result of the displayed program?
7 5 9
9 5 7
14 6
6 14
54
What role does a compiler have in processing a high-level language?
The compiler speeds up the run time of a program.
The computer does not understand it. it is needed to translate code.
The compiler ensures that the program has no runtime errors.
The computer checks it checks for updates to install programs
55
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
How much time a person spent playing the game
The player’s score
How many locations the player visited
Recording whether the player was speeding when driving to a location.
56
What is returned by
cube(cube(2))
?
64
128
512
8
57
What is the minimum number of binary digits needed to store the number 56?
3
1
5
6
58
What should replace so the program below displays TRUE 60% of the time?
x MOD 5 = 5
x MOD 2 = 0
x MOD 2 = 1
x MOD 5 = 0
59
Which command can replace <Missing Condition> to result in the last column of the table shown below?
b AND (a AND b)
a AND (a AND b)
a OR b
NOT (a AND b)
60
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
JavaScript Coding Protocol
Hypertext Transfer Protocol
Simple Mail Transfer Protocol
Internet Protocol
61
What is displayed as a result of executing the following code segment?
Moose Benji Novack Waffle Noodles
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
Waffle Moose Noodles Novack Benji
62
What will the program above display?
3 7
2 7
4 8
2 8
63
What is displayed by running the code segment?
3 3 6
8 4 6
11 3 8
3 11 3
64
Which best describes the role of TCP?
The set of rules for the path packets taken on the fault-tolerant internet
The Foundation of data communication for the World Wide Web
A common protocol for encrypting and decrypting data on the internet
Setting the rules for numerical label given to each device on the internet
65
Find the error in the following low-level programming code.
The 84th digit should be a 1.
too hard to find errors. It would be easier to use an upper-level language
The 17th 1 needs to be changed to a 0.
The 34th 0 should be a 1.
66
What is displayed after the following algorithm is run?
32
132
100
50
67
What will the following code segment display?
22
1
30
10
68
What will the following program display?
OXXOO
OXXOXXOXX
OOOXX
The program is an infinite loop.
69
Answer the question below
II, IV, and V only
I, II, and IV only
I, II, III, and IV only
All of the above
70
What is the code below displaying?
3, 6, 9, 12, 15
2, 4, 6, 8, 10, 12, 14
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Nothing will be displayed
71
Which of the following types of components is necessary for cybersecurity?
I only
I and II only
I, II, and III
III only
72
ow many lines need to be cut to completely isolate computer E from computer C?
6
0
8
3
73
What is the minimum number of lines that must be cut to isolate F completely?
8
0
4
6
74
The following picture was taken by a smartphone.
The Red, Green, and Blue values of the top left pixel
The filename
The geographic location where the picture was taken
The date the photo was taken
75
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always true
Always false
True when either A or B are true
76
Why does program code have to be run through a compiler?
Program code must be translated into a language the computer understands.
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.
It doesn’t, as the new program could be run directly from the code.
77
Which of the following statements are true about high-level programming languages? Select
two
answers.
A high-level programming language often uses natural language elements.
A high-level programming language does not ensure program reliability.
must be used to execute commands such as adding and multiplying.
A high-level programming language allows for code to be re-used.
78
What is displayed after running the algorithm below?
12
145
133
43
79
Which of the below, represented in binary as a byte, contains the most zeros?
.
K
C
p
80
The following program is intended to display the string 789. What type of error will the following procedure cause?
Syntax error
Logic error
Runtime error
No error
81
What is the code segment displaying?
34
0
17
68
82
Which of the following are benefits to having information be easily accessible and changeable?
I only
II and III only
I and II only
I, II, and III
83
Which of the following statements is
NOT
correct
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
Logic gates are modeled by Boolean functions.
84
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 9
x < 6
x >= 6
x > 10
85
What is the value of sum displayed after this algorithm is run?
6
0
error
4
86
Which of the following test cases will NOT find the maximum number in the list?
list1[4]
list1[−23, −67, −3, −7]
list1[0, 0, 0, 0]
list1[23, 67, 3]
87
Which of the following lines of code would cause an error with a robot?
CAN_MOVE (right)
CAN_MOVE (north)
NOT CAN_M0VE (forward)
NOT CAN_MOVE (left)
88
What will the following code segment display?
11
6
Nothing will be displayed due to an error.
3
89
What is returned by
mystery (1, 2)
?
4
8
2
10
90
What will the program segment display?
99
34
2
3