stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Willey, Kendra AP Exam Review Flashcards | StudBud
Explore
/
Willey, Kendra AP Exam Review
Willey, Kendra AP Exam Review
91 terms
·
StudBud Administration
·
1 play
Imported from external platform
Flashcards
91 cards
F
Practice quiz
P
Host live
L
Questions
91
Answers
1
After the following code segment is run, what will be the values of x and y?
x is 40, y is 30
x is 30, y is 40
x is 20, y is 20
x is 40, y is 40
2
Which of the following types of components is necessary for cybersecurity?I. SoftwareII. HardwareIII. Human
I, II, and III
I only
I and II only
III only
3
What is the code segment displaying?
0
17
68
34
4
Two computers calculate the same equation: 1/3 What error has occured if the values are not the same?
Roundoff error
a will equal b on all computers
Hexadecimal conversion error
Overflow error
5
Which of the following is true about data compression?
Data compression can be used for pictures and video only.
Lossy compression cannot be used when sending pictures.
Lossless data compression is the best compression under all conditions.
Data compression can be used to reduce the size of a file for transmission.
6
These drawings depict two fundamental cryptographic concepts.Which of the choices below properly identify these concepts
Hash Codes and Key Transfers
Symmetric and Steganography
Asymmetric and Symmetric
Lexicographic and Asymmetric
7
Which of the following statements are true about high-level programming languages?
A high-level programming language often uses natural language elements.
A high-level programming language is used to execute commands such as + & -
A high-level programming language does not ensure program reliability.
A high-level programming language allows for code to be re-used.
8
Which of the following is true about data compression?
Lossless data compression is the best compression under all conditions.
Data compression can be used for pictures and video only.
Data compression can be used to reduce the size of a file for transmission.
Lossy compression cannot be used when sending pictures.
9
Which of the following is
NOT
an investigation tool for designing programs?
User testing
Direct observations
Collecting data through surveys
Programming the most elegant code
10
What type of error did the procedure suffer from while trying to display the sum of all numbers in the list?
No error; the program works as intended
Syntax error
Runtime error
Logical error
11
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Simple Mail Transfer Protocol
Internet Protocol
JavaScript Coding Protocol
Hypertext Transfer Protocol
12
Which of the following could
NOT
be a potential response using IPv4?
54.116.188.246
92.11.198.113
128.198.232.65
174.260.45.144
13
Which of the following can be represented by a single binary digit?
Time
Geographic location
Date
Light on / light off
14
What is the maximum number of searches required if using a linear search on list containing 2,000 numbers?
1
11
1,000
2,000
15
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
16
What will the program display?
2 8 14
Nothing due to an infinite loop
4 8 8
3 8 0
17
The following program is intended to display the string 789. What type of error will the following procedure cause?
Runtime error
Syntax error
Logic error
No error
18
Which of the following statements about the Internet is true?
The Internet requires all communications to use encryption protocols.
The Internet is a computer network that uses communication protocols.
The Internet is designed to scale to support an increasing number of users.
The Internet uses a centralized system to determine how packets are routed.
19
What type of error did the procedure below suffer from from trying to sum all the numbers in the list?
Runtime error
No error. The program works as intended.
Syntax error
Logical error
20
Which of the following test cases will NOT find the maximum number in the list?
list1[−23, −67, −3, −7]
list1[23, 67, 3]
list1[0, 0, 0, 0]
list1[4]
21
An algorithm has n number of steps. Which of the following would be considered a reasonable number of steps?
3^n
4^n + 8n^2
100n^4
n!
22
What will the following code segment display?
Nothing will be displayed due to an error.
3
11
6
23
Which of the following is NOT an example of using citizen science as a possible solution?
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of fireflies during the summer months
Calculating PSAT scores for a school district
The behavior of the wonderful jellyfish on the beach or water
24
Which of the following test cases will return the correct average using the above procedure
numbers[3, 5, 11, 6]
numbers[11, 35, 6]
numbers[0, 1, 35, 6]
numbers[1, 1, 35, 6]
25
Which of the following events is most likely to take place among the DNS servers when widgets.cs.fbhs.org is searched?
The widgets name server will send IP address of the widgets.cs name server.
widgets.cs.fbhs.org server will send the IP address of widgets.cs.fbhs.org
The .org name server will send the IP address of the fbhs.org name server.
The .org name server will send the IP address of widgets.cs.fbhs.org
26
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
Sponsorship of the article or publisher
Use of persuasive techniques within the source
27
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
28
What will the following code segment display?
30
1
10
22
29
Which of the following is a true statement about data transmitted over the internet?
Redundancy in the design of the by large companies that set the standards
The (DNS) has been challenged by the (DMCA)
Packets are received in the same order that they are sent.
All data traveling over the internet is in binary.
30
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
1
0
100
8
31
Which of the following is a potential outcome of collaboration with sceintists by creating and testing simulations?
The result that is considered abnormal, this could be used as a basis
The company can create a simulation if it's too expensive
If scientists need info to create hypothesis a simulation can be used
All of the above are potential outcomes.
32
The following picture was taken by a smartphone. Which of the following is
NOT
metadata?
The filename
The Red, Green, and Blue values of the top left pixel
The geographic location where the picture was taken
The date the photo was taken
33
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 modeled by Boolean functions
Logic gates are used to perform operations such as addition and subtraction
34
In the following flowchart, what is the value of RESULT?
Always true
True when either A or B are true
True when both A and B are true
Always false
35
What is displayed as a result of executing the following code segment?
Dog Waffle Moose Noodles Novack Benji
Waffle Moose Noodles Novack Benji
Moose Benji Novack Waffle Noodles
Dog Waffle Noodles Moose Novack Benji
36
What will the following code segment display?
11
6
3
Nothing will be displayed due to an error.
37
What should replace <missing condition> so that the program below display TRUE 10% of the time?
x < 9
x < 1
x <= 9
x <= 1
38
Which best describes the role of TCP?
Rules for a label assigned to each device connected to the internet
The foundation of data communication for the World Wide Web
A common protocol for encrypting and decrypting data transferring
The set of rules for the path packets taken on the fault-tolerant internet
39
Choose the best respone to the question below:
Ticket type
Ride preference
Food preference
Walking preference
40
Which of the following statements below is NOT true?
Lossy formats rebuild files to their pre-compressed specifications
Scanning in a picture creates a lossy format result.
Lossless compression is making a file smaller and being able to put it back
Moving music onto your digital music player is done is a lossless format
41
What procedure will result in the robot landing on the star?
moveAndSpin(0, 1)moveAndSpin(6, 3)moveAndSpin(4, 0)
moveAndSpin(7, 3)
moveAndSpin(0, 7)
moveAndSpin(4, 1) moveAndSpin(6, 0)
42
Why do computing innovations tend to lead to legal concerns?
There is no way to hide your IP address on the internet
The speed of innovations has made these laws harder to enforce
Lawyers are unfamiliar with the laws governing computing innovations
Laws involved in these concerns were often created before computers
43
Which of the following best approximates the minimum possible time to run all three processes in series?
28 seconds
4 seconds
15 seconds
9 seconds
44
Which of the following correctly identify methods of DNS cache poisoning?
Rogue Servers
Masquerading
DNS BINDing
DNS Key Distribution
45
What is the minimum number of lines that must be cut to isolate F completely?
4
0
6
8
46
What is returned by
cube(cube(2))
?
128
512
8
64
47
Which of the following considerations is likely to affect the ability of the program to process large data sets?
esponse
The amount of program documentation that should be minimized
How many program statements the program contains
The order of the data put into the data set
How much memory the program requires to run
48
What will be the result of the displayed program?
14 6
6 14
9 5 7
7 5 9
49
What is the code below displaying?
Nothing will be displayed
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
50
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 9
x > 10
x >= 6
x < 6
51
Which command can replace <Missing Condition> to result in the last column of the table shown below?
a OR b
b AND (a AND b)
a AND (a AND b)
NOT (a AND b)
52
Which of the following is considered a potential effect of digital appointments, and not the purpose?
People without internet access will not be able to make an appointment
Digital appointments will ensure an even distribution of tests
Digital appointments will make people who live in cities less tested
The digital appointments will allow for more testing.
53
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 ensures that the results are correct.
An efficient solution makes it harder to copy an algorithm.
An efficient solution can make it easier to analyze larger data sets.
54
What will the following code segment display?
Nothing will be displayed due to the error index out of bounds.
9 10 7 4 1
1 4 7 10 9
10
55
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
56
Which of the following lines of code would cause an error with a robot?
NOT CAN_M0VE (forward)
CAN_MOVE (right)
CAN_MOVE (north)
NOT CAN_MOVE (left)
57
Which of the following is NOT an example of using citizen science as a possible solution?
Calculating PSAT scores for a school district
The behavior of the mysterious and wonderful jellyfish on the beach
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of fireflies during the summer months
58
What will be the output of the following program?
14
14 6
7 5 9
9 5 7
59
What are two aspects of efficiency?
execution time and memory usage
wall clock time and CPU time
execution time and length of code
memory usage and length of code
60
The procedure isFound(list, item) will return TRUE if an item is found in a list What will the procedure display
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[4, 6, −4]
[1, 6, −4]
[ ]
61
Which of the following can be represented by a single binary number?
Do you have a puppy?
What is the speed of a puppy chasing a squirrel?
Is your puppy named “Waffles”?
What is the position of an object in a grid of squares in a 2D array?
62
The findings from a project are typically presented using a graph as opposed to table or raw data. Why might this be?
Graphs are easier to read and interpret at a glance.
Graphs are able to show all of the detail necessary to understand data.
Graphs can show trends that might not be easily seen with raw data.
Graphs can be easily placed into a slideshow or document, while tables cant
63
Which of the following types of components is necessary for cybersecurity?
III only
I and II only
I, II, and III
I only
64
What protocol below guides the rules about how data are subdivided into packets before transmission?
DNS
FTP
TCP
HTTP
65
Which of the following best approximates the minimum time to run all five processes? Four and five must run in series
7 seconds
10 seconds
18 seconds
8 seconds
66
Which of the following would
NOT
be a useful metric with which to analyze gerrymandering data?
Third-party wins
Overall results
County splits
Racial makeup
67
What is the minimum number of binary digits needed to store the number 56?
6
5
1
3
68
Which of the following best describes a direct benefit in using redundant routing on the Internet?
Redundancy allows messages to be sent even if some devices have failed
Redundancy enables messages to be transmitted with few packets as possible
Redundancy allows communication with few network connections as possible
Redundancy prevents communications from being intercepted
69
When sending a picture to your friend, what is true about the packets of information sent?
All of the above.
Packets are sent in multiple paths and can be received out of order.
Packets are sent by the quickest path possible in the correct order
Packets are received in the order that they are sent.
70
The code is intended to swap the variables a and b using a temporary variable. What can replace so the algorithm works?
b <- temp
temp <- b
temp <- a
b <- a
71
What is displayed as a result if the user inputs “Karel” to the program?
What is your name?HelloKarel
Hello Karel
What is your name? Hello Karel
What is your name?Hello Karel
72
What type of algorithm would be best used for fraud detection?
Searching algorithm
Heuristic algorithm
Brute force algorithm
Optimization algorithm
73
What is the value of sum displayed after this algorithm is run?
4
Error
0
6
74
What is displayed by running the code segment?
3 3 6
8 4 6
3 11 3
11 3 8
75
Which of the following lists is
NOT
a candidate for a binary search?
A list of numbers from smallest to largest
A list of words in a dictionary
A list of students in order of height
A list of words from a poem about sunshine in the order they appear
76
What will the following program display?
OOOXX
OXXOO
The program is an infinite loop.
OXXOXXOXX
77
What will the following code display?
20
16
15
0
78
What is a major disadvantage of the internet’s model of trust?
A trusted website can have a large amount of power over a computer
A trusted website has power over the computer’s ROM
A trusted website can still download malicious code
A trusted website cannot have encrypted communications
79
The Caesar cipher is an example of what type of encryption?
Home key encryption
Public key encryption
Symmetric encryption
No key encryption
80
Which of the following is true about redundancy on the internet?
II and III only
I II and III
I only
I and II only
81
What is the minimum number of lines that must be cut to isolate F completely?
4
6
8
0
82
What is displayed after the following algorithm is run?
132
100
32
50
83
What does the algorithm display?
3
7
5
4
84
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
85
What is returned by
mystery (1, 2)
?
10
2
8
4
86
Sort the following by levels of abstraction, from lowest to highest:
I, IV, III, II
I, III, IV, II
I, IV, II, III
I, II, III, IV
87
What will the executed code display?
All odd numbers between 3 and 12
All even numbers between 1 and 12
All odd numbers between 1 and 12
All even numbers between 3 and 12
88
What is the following program returning?
25
27
20
37
89
Why is it more effective to put procedures in a program than to repeat code?
Using procedures takes up less space than repeating code
Procedures are guaranteed to work in every instance
Procedures simplify editing by requiring only one edit
Procedures make a program harder to edit
90
We can convert a number from decimal to octal (base 8) by repeatedly subtracting the largest possible powers of what?
9
7
2
8
91
What is displayed because of executing the code segment?
9
3 9
1 5 7
1 3 5 7 9