stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Patel,Hinal AP Exam Review Flashcards | StudBud
Explore
/
Patel,Hinal AP Exam Review
Patel,Hinal AP Exam Review
100 terms
·
StudBud Administration
·
2 plays
Imported from external platform
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
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
2
What is the value of total displayed after this algorithm is run?
37
27
20
25
3
Solve the following:
x is 30, y is 40
x is 40, y is 40
x is 40, y is 30
x is 20, y is 20
4
Solve
x MOD 2 = 1
x MOD 5 = 5
x MOD 2 = 0
x MOD 5 = 0
5
What binary number is equal to the following
10011 BIN
11110 BIN
11100 BIN
10100 BIN
6
Solve
None
I only
I , II , and III
II only
7
What is displayed after running the algorithm below?
133
145
43
12
8
Solve the following
User name
Speed traveling
Location of landmarks used in the game.
GPS location of user
9
Solve the following
34
2
3
99
10
How many bits do you need to represent 500 in binary?
5
3
9
10
11
Solve
Algorithm II
Neither Algorithm I nor Algorithm II
Both Algorithm I and Algorithm II
Algorithm I only
12
Solve the following:
The Client will not receive any data due to the outage
Host 1 will compensate for the outage and route the data accordingly
ISP Y will receive packets indicating a failure to Host 3
13
Which of the following is true about data compression?
Lossless data compression is the best compression under all conditions.
Lossy compression cannot be used when sending pictures.
can be used for pictures and video only.
can be used to reduce the size of a file for storage or transmission.
14
Solve
Both I and II
II only
I only
Neither I nor II
15
Solve the following
SPIN()
ESCAPE()
CAN_ESCAPE()
IS_TRAPPED()
16
What could a single binary value represent?
Time
Temperature in degrees Celsius
If a light is on or off
Volume on a radio
17
Which of the following lists is
NOT
a candidate for a binary search?
A list of students in order of height
A list of numbers from smallest to largest
A list of words in a dictionary
list of words from a poem about sunshine in the order they appear in poem
18
Solve the following
0
8
6
3
19
Solve
512
8
64
128
20
Solve the following
11 sec
9 sec
15 sec
13 sec
21
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
100
0
1
22
Solve the following
Algorithm A and Algorithm calculate average correctly
Algorithm A calculates average in all cases, while Algorithm B does not.
Neither Algorithm A nor Algorithm B calculates average correctly.
Algorithm B calculates average in all cases, while Algorithm A does not
23
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
24
Solve
20
0
16
15
25
Which of the following best approximates the minimum possible time to run all five processes?
8 seconds
18 seconds
7 seconds
10 seconds
26
Solve
BMP. The algorithm for storing a BMP file has fewer steps.
GlF. Storing the data in pairs allow us only to use the 3 bytes once
GIF. Storing information in a table format ensures losslessness.
BMP. Having access to the data at every pixel ensures losslessness.
27
Solve
both I & II
Neither
I only
II only
28
Solve
FOR EACH item IN list
REPEAT UNTIL (Goal_Reached)
REPEAT 4 TIMES
REPEAT UNTIL x = 4
29
What is displayed after running the algorithm below?
3
6
11
Nothing will be displayed due to error
30
Solve the following
Roundoff error
Hexadecimal conversion error
a will equal b on all computers
Overflow error
31
Solve
I, II, III, and V only
All of the above
II, IV, and V only
I, III, and IV only
32
Solve
No the program is written already & take same number steps regardless sign
Yes the num of steps in an algorithm changes proportional the input.
No bc the search is linear so the dataset is split in half with iteration.
Yes, because the new members may not be added alphabetically.
33
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
11
100
2,000
1,000
34
Solve
34
0
6
17
35
Monica is surfing the web one day after class. She types the following web address widgets.cs.fbhs.org into the URL bar.
.org name server will send the IP address of the fbhs.org name server.
widgets.cs.fbhs.org name server will send IP address of widgets.cs.fbhs.org
widgets name server will send the IP address of the widgets.cs name server
.org name server will send the IP address of widgets.cs.fbhs.org
36
What is a major disadvantage of the internet’s model of trust?
trusted website cannot have encrypted communications
trusted website can have a large amount of power over a computer,
trusted website has power over the computer’s ROM,
trusted website can still download code even if it blocked by a firewall
37
Solve the following
Step 5, Step 1, Step 6, Step 3, Step 2, Step 4
Step 1, Step 5, Step 3, Step 6, Step 2, Step 4
Step 5, Step 1, Step 2,Step 4, Step 6, Step 3
Step 1, Step 5, Step 6, Step 3, Step 4, Step 2
38
Solve
x MOD 5 = 5
x MOD 2 = 1
x MOD 2 = 0
x MOD 5 = 0
39
What is binary
A base 2 number system
A computer program
Software for a computer
A part of a computer
40
Solve:
11
6
21
3
41
Which of the following lines of code would cause an error with a robot?
NOT CAN_M0VE (forward)
NOT CAN_MOVE (left)
CAN_MOVE (north)
CAN_MOVE (right)
42
Solve
replace_even(n, list){x ← list[n]+1INSERT(list, n, x)REMOVE(list, n)} )}
replace_even(n, list) {INSERT(list, n, n + 1)REMOVE(list, n)} }
replace_even(n, list) {x ← list[n]+1REMOVE(list, n)INSERT(list, n, x)}
replace_even(n, list){n ← n + 1 } }
43
Solve the following
K
C
.
p
44
Which best describes the role of TCP?
Always false
True when either A or B are true
True when both A and B are true
Always true
45
Solve
fixed number of bits used to store the values resulted in an overflow error
The program does not handle signed integers.
While multiplying the floating point numbers, there was a round-off error.
program calculating the rounded price for one of the products then x3
46
Which of the following does NOT need to be considered when determining the credibility of a source?
Publisher’s reputation and credentials
Use of persuasive techniques within the source
author’s reputation and credentials
Sponsorship of the article or publisher
47
Which of the following is NOT an example of using citizen science as a possible solution?
The behavior of fireflies during the summer months
The behavior of the mysterious & wonderful jellyfish on the beach or water
Collecting recordings using ultrasonic microphones & sonograms of bats
Calculating PSAT scores for a school district
48
Solve
4
7
5
3
49
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 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.
50
Solve the following
Logical error
No error; the program works as intended
Runtime error
Syntax error
51
When should a heuristic algorithm be used?
When determining which files could have been exposed to a virus
When calculating the average score for the national SAT test
When finding the quickest way to drive from Florida to Alaska
When finding the lifetime batting average of Mookie Wilson
52
Solve the following
Insertion sort
Bubble sort
Linear search
Binary search
53
Solve the following
8
512
256
24
54
Solve the following
RANDOM(250, 1000) < 251
RANDOM(1, 2) > 1
RANDOM(1, 4) < 2 RANDOM(1, 4) < 2
RANDOM(5, 8) > 7
55
Solve:
10%
40%
50%
20%
56
Solve the following
The 34th 0 should be a 1
This is too difficult to determine.
The 84th digit should be a 1.
the 17th 1 needs to be changed to a 0
57
What is this in decimal?
130
129
127
128
58
Solve
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[ ]
[4, 6, −4]
[1, 6, −4]
59
Solve
Mainframe Computer, as it can be accessed from many computers.
USB Flash Drive, it can be copied & handed or mailed to multiple users.
Cloud Drive, as it allows for multiple users and version control.
magnetic Drive System. as it can handle all data types.
60
Solve:
import java.util.concurrent.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
import java.ThreadLocalRandom
import java.util.function.ThreadLocalRandom
61
Solve
Neither
I only
II only
Both I & II
62
Solve
x is 20, y is 20
x is 40, y is 40
x is 40, y is 30
x is 30, y is 40
63
Which of the following can be represented by a single binary number?
What is the speed of a puppy chasing a squirrel?
Do you have a puppy?
Is your puppy named “Waffles”?
What is the position of an object in a grid of squares
64
Solve:
Algorithm II only
Algorithm I only
Both Algorithm I and Algorithm II
Neither Algorithm I nor Algorithm II
65
How many lines need to be cut to completely isolate computer E from computer C?
3
5
6
9
66
Solve the following
5,6,-5,6
5, 7, −6, 7
5,6,3,3
5,7,4,3,5
67
What is this decimal?
128
156
64
8
68
Solve the following
The grid could ensure that all computers on it are properly updated.
The grid could distribute power in the most efficient manner possible,
The grid could control the temperature of an A/C or a heating unit directly
The grid could prevent blackouts altogether.
69
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
2
7
8
9
70
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 on internet
The foundation of data communication for the World Wide Web
The set of rules for the path packets taken on the fault-tolerant internet
71
Solve the following
x >= 6
x >= 9
x < 6
x > 10
72
Solve
I only
I, II, and IV only
II, III, and IV only
All of the above
73
What is the minimum number of binary digits needed to store the number 56?
5
6
1
3
74
Solve
OXXOXXOXX
OOOXX
OXXOO
The program is an infinite loop.
75
Which of the following is NOT metadata for the picture?
The time the picture was taken
The picture of the dog
The location where the picture was taken
The memory space taken up by the picture
76
Solve the following
8 seconds
20 seconds
10 seconds
38 seconds
77
Which of the following is a cause of the digital divide?
All of the above
Lack of access to the technology due to affordability
Lack of knowledge on how to use technology
Lack of access to technology due to location
78
Solve:
Lossy formats are excellent to use when a file must be compressed
is done is a lossless format to reduce the size of the file.
Scanning in a picture creates a lossy format result.
lossless compression is based on the idea of breaking a file into smaller
79
Sort from lowest to highest: I. logic gates II. operating systems III. programming language IV. machine language
I, II, III, IV
I, IV, III, II
I, IV, II, III
I, III, IV, III, III, IV, II - no response given
80
What is the highest value you can count to using 4 bits?
16
4
15
7
81
Solve the following
64
8
128
512
82
Which of the following test cases will return the correct average using the below procedure
numbers[0, 1, 35, 6]
numbers[11, 35, 6]
numbers[1, 1, 35, 6]
numbers[3, 5, 11, 6]
83
Solve the following
3 9
1 3 5 7 9
9
1 5 7
84
Solve
Preference categorization
Reference grouping
Statistical probability model
Information filtering
85
Which of the following best approximates the minimum possible time to run all five processes in parallel?
11 seconds
10 seconds
9 seconds
3 seconds
86
Solve
I, Il, III, IV
I, III, IV, II
III, I, II, IV
I, IV, II, III
87
Solve the following
NOT(a OR a)
A OR b
NOT b
NOT(a OR a)
88
What are two aspects of efficiency?
memory usage and length of code
wall clock time and CPU time
execution time and length of code
execution time and memory usage
89
Solve
Food supply
Antler size
Population size
Prevalence of illness in herd
90
What is displayed after running the algorithm below?
Moose Benji Novack Waffle Noodles
Waffle Moose Noodles Novack Benji
Dog Waffle Moose Noodles Novack Benji
Dog Waffle Noodles Moose Novack Benji
91
Solve
II, IV, and V only
All of the above
I, II, and IV only
I, II, III, and IV only
92
Solve
All odd numbers between 1 and 12
All odd numbers between 3 and 12
All even numbers between 1 and 12
All even numbers between 3 and 12
93
Which of the following is the most likely data privacy concern for the original browser?
cookies are used to acquire users’ private encryption keys.
r text files that keep track of such things as website visits & activities
Cookies are responsible for spam and create pop-up advertisements.
Information collected about your personal preferences & private activities
94
Why is it important to find an efficient solution to a problem?
An efficient solution can make it easier to analyze larger data sets.
An efficient solution can always be solved in a reasonable amount of time.
An efficient solution makes it harder to copy an algorithm.
95
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
1 4 7 10 9
9 10 7 4 1
10
96
Solve
Logic error
Runtime error
Syntax error
No error
97
The following program is intended to display the string 789. What type of error will the following procedure cause?
Syntax error
Logic error
No error
Runtime error
98
Which of the following can be represented by a single binary digit?
Date
Light on and off
time
geographic location
99
What is the value of sum displayed after this algorithm is run?
6
Error
4
0
100
Is a binary search always the fastest search when searching for a number in a sorted list?
A binary search is always faster with a sorted list.
For a large list, linear searches are always faster.
For a large list, binary searches are always faster.
No, the first pass of a linear search has a chance