stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Chrin, Silia AP Exam Review Flashcards | StudBud
Explore
/
Chrin, Silia AP Exam Review
Chrin, Silia AP Exam Review
100 terms
·
StudBud Administration
·
2 plays
APCSP Review
Flashcards
100 cards
F
Practice quiz
P
Host live
L
Questions
100
Answers
1
The procedure isFound(list, item) will return TRUE if an item is found in a list What will the procedure display?
[ ]
[1, 6, −4]
[1, 35, 6, 76, 4, 98, 5, 1, 8, 96, −4]
[4, 6, −4]
2
You check the file and find that these files are from the day’s work at the office. What is this an example of?
Phishing Attack
Computer Virus
Network Worm
Keylogger Attack
3
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
Hypertext Transfer Protocol
Internet Protocol
JavaScript Coding Protocol
Simple Mail Transfer Protocol
4
decision problem
The process of converting encrypted data back into its original form.
A specific example or case of a problem that can be solved.
A problem that requires a yes/no answer based on certain criteria.
A situation that requires a solution.
5
You connect a new device to your Wi-Fi internet connection at home. What will happen next?
The device will be assigned a new Web address
The device will be assigned a new IP address
The device will be assigned a new device driver
The device will be assigned a new packet number
6
Ex: shift of 3 would cause the word “cat” to be translated “fdw.” The Caesar cipher is an EX of what type of encryption?
Home key encryption
Public key encryption
No key encryption
Symmetric encryption
7
The time for sequential setup was 30s, while it took the parallel model only 10s. What will be the speedup parameter?
0.333
3
300
20
8
Contacts a server using IPv4 and pages a request for a website’s address. Which could
NOT
be a potential response?
128.198.232.65
54.116.188.246
174.260.45.144
92.11.198.113
9
Sort the following by levels of abstraction, from lowest to highest:
I, IV, II, III
I, III, IV, II
I, IV, III, II
I, II, III, IV
10
Which of the following statements are true about high-level programming languages? Select two answers .
A high-level programming language allows for code to be re-used.
high-level programming must be used to execute commands like adding
A high-level programming language often uses natural language elements.
A high-level programming language does not ensure program reliability.
11
Files can't be directly sent and needs encryption to prevent uncleared access. Which method gives the best encryption?
Public key encryption
Certificate Authorities
Multi-factor authentication
Symmetric key encryption
12
which following codes would be a replacement for the above code segment?
I only
II and III
II only
I , II , and III
13
The code segment intends to swap the variables. What can replace so the algorithm works as planned?
temp <- a
temp <- b
b <- a
b <- temp
14
abstraction
The concept of executing instructions in a fixed order, one after another.
process of simplifying systems by focusing only on the necessary details.
A step-by-step procedure for solving a problem or accomplishing a task
process of converting data into coded format to prevent unauthorized access
15
decryption
A specific example or case of a problem that can be solved.
The process of converting encrypted data back into its original form.
A problem that requires a yes/no answer based on certain criteria.
A situation that requires a solution.
16
What is displayed because of executing the code segment?
1 3 5 7 9
1 5 7
3 9
9
17
Which of the choices below properly identify these concepts?
Symmetric and Steganography
Asymmetric and Symmetric
Hash Codes and Key Transfers
Lexicographic and Asymmetric
18
The vending machine uses the following flow chart. What will happen if five coins are inserted into the machine?
The vending machine will wait until more quarters are added
The vending machine will give out drinks with change
The vending machine will not give out drink
The vending machine will give out drinks and keep the change
19
decidable problem
problem there exists an algorithm that can always provide a correct answer.
ability to accomplish a task w/minimal waste of time, resources, or effort
method of searching for a value in list by checking each element in order.
The ability of a system to handle growing amounts of work or data.
20
What will be displayed?
9 6 3 0
10 8 7 5 4 2 1
10 8 7 5 4 2 1 0
9 6 3
21
Uses a server to cache info about clients' visits. Which would not be impacted by an update to this server?
Accessibility to websites not stored on the server
Storage requirements for the data
Average response time for visiting a stored web page
Privacy of users
22
Which of the following concepts does this demonstrate?
If security r ignored, data by government programs can b exploited
If security protections r ignored, data by commercial can b exploited
If privacy-related prtctns r ignrd, data by gov. programs can be exploited
If privacy protections r ignored, data by commercial groups can b exploited
23
You change some of the code and execute the program again, but the same issue persists. What sort of error causes it?
Round-off error
Syntax error
Runtime error
Logic error
24
encryption
A step-by-step procedure for solving a problem or accomplishing a task
The concept of executing instructions in a fixed order, one after another.
process of converting data into coded format to prevent unauthorized access
process of simplifying systems by focusing only on the necessary details.
25
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)
26
Which of the following illustrate ways that the internet facilitates collaboration
I, II, and III
II and III only
I only
I and III only
27
Which of the following is
NOT
an investigation tool for designing programs?
Direct observations.
Programming the most elegant code
Collecting data through surveys
User testing
28
optimization problem
A formal language used to instruct computers and define algorithms.
problem-solving approach uses practical methods rather than rigorous logic
is the smallest unit of data that a computer uses.
problem that involves finding the best solution from all possible solution
29
This info is stored under variables borrowed and returned. Which condition is true if all borrowed books were returned?
borrowed / returned > 1
borrowed + returned = positive even number.
borrowed – returned = 1
borrowed * returned = positive even number
30
In the following flowchart, what is the value of RESULT?
True when both A and B are true
Always false
True when either A or B are true
Always true
31
This caused few loans to be given to recent graduates because of their college loans. Where does the bias exist within?
Bias exists at the data reporting stage
Bias exists at the data analysis stage
Bias exists at the data preparation stage
Bias exists at the data collection stage
32
Why does updating a file require more memory than reading a file?
read fl rqrs no mmry, so th updtng fl would always require more memory.
rd fl rqrs ntir fl b lded 2 mmry, bt updtng fl rqrs bth OG & updt fl n mmry
rd fle neds crtn prts lded to mmry, bt updtng fl rqrs th ntir fl 2 b n mmry
rd fle uses nly th hrd dsk, whle updting fle rqrs bth th hrd dsk & th RAM
33
Which of the following does NOT need to be considered when determining the credibility of a source?
Use of persuasive techniques within the source
Sponsorship of the article or publisher
Publisher’s reputation and credentials
Author’s reputation and credentials
34
What is the purpose of a digital certificate in secured communications?
dgtl crtfct ensures the communication system was examined by a third party.
dgtl crtfct=srvr’s security examnd by 3 prty, PK ncryptn, transactions=safe
dgtl crtfct ensures the server cntactd n th secure connection is actual one
dgtl crtfct ensures that the website’s code was created by prof programmer
35
A DISPLAY command can show a num variable that holds an integer value. What would the code display if it is executed?
a. The quotient that results when the num value is divided by 10
c. The integer value of num in its one's position
d. The integer value currently stored in the variable num
b. The integer value of num in its ten's position
36
What will be the output of the following program?
7 5 9
9 5 7
14
14 6
37
John and May developed a bad children’s game. They want feedback. Which step can they take to get the correct feedback?
Posting interest surveys on social media apps
Asking Family and Friends
Calling numbers from a phonebook
Give out flyers to parents at elementary schools
38
efficiency
method of searching for a value in list by checking each element in order.
ability to accomplish a task w/minimal waste of time, resources, or effort
problem there exists an algorithm that can always provide a correct answer.
The ability of a system to handle growing amounts of work or data.
39
What is the code segment displaying?
34
0
17
68
40
What should replace so the program below displays TRUE 60% of the time?
x MOD 5 = 0
x MOD 2 = 0
x MOD 2 = 1
x MOD 5 = 5
41
What will the program above display?
3 7
2 8
2 7
4 8
42
Which precautions ensure that other residents in the apartment complex will not be able to see Noah’s wireless network?
II and IV
II, III, and IV
I only
I, II, III, and IV
43
When running the same program in parallel, they take 400 seconds to run. What is the speedup for the parallel solution?
1
1,000
10
100
44
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.
45
Which of the following best describes the type of site that Ripley is using?
Webopedia
Wiki
RSS Feed
Newsgroup
46
Which would most likely prevent information from being sold?
Users visit only websites w/a digital crtfct tht block trgtd advertisements
Individuals using the web browser without the Do Not Track option
Users with strong passwords and multifactor authentication
Individuals using the web browser with the Do Not Track setting engaged
47
An employee uses a security token texted to their mobile phones. What factor is being used to identify the employee?
Possession
Knowledge
Facial Features
Inherence
48
What is the value of sum displayed after this algorithm is run?
4
Error
6
0
49
What could be a possible reason for the restriction if the organization does not want to further break up the tasks?
There are limited connection configurations for additional devices
Additional devices do not increase parallel data processing speed.
Additional devices do not increase the speed of the sequential processing
Additional devices require more connection power and space
50
What will the executed code display?
All even numbers between 3 and 12
All odd numbers between 1 and 12
All odd numbers between 3 and 12
All even numbers between 3 and 12
51
They find the sound quality to be lower. Which of the following could be a possible reason why this difference exists?
The song file was saved with lower bits per second
The song file was saved with higher bits per second
The recording was done through the lossless compression technique
The file was moved from the OG location, causing information to be lost
52
Which best describes the role of TCP?
The foundation of data communication for the World Wide Web
Setting the rules 4 numerical label assigned to each device connected inter
common protocol 4 encrypting & decrypting data transferring on the internet
The set of rules for the path packets taken on the fault-tolerant internet
53
What minimum number of connections must be broken to prevent E and G from communicating with one another?
2
1
3
4
54
programming language
problem-solving approach uses practical methods rather than rigorous logic
is the smallest unit of data that a computer uses.
A formal language used to instruct computers and define algorithms.
problem that involves finding the best solution from all possible solution
55
Based on their backgrounds, what is the most likely method the students can use to raise funding for their venture?
Utilize a crowdsourcing website to raise the needed capital.
Apply for a small business loan through an online bank.
Design and create a website in hopes a venture capitalist will come to them
Create a bulk email campaign that sends emails to all of the students
56
If list
CSList
contains the data: [’c’, ’o', ’m’, ’p’, ’u', ’t', ’e’, 'r'], what will be displayed by
mystery(CSList)
cmptr cmptr cmptr
computer computer computer computer computer
computer computer computer
cmptr cmptr cmptr cmptr cmptr
57
Which of the following is NOT metadata for the picture?
The picture of the dog
The location where the picture was taken
The memory space taken up by the picture
The time the picture was taken
58
heuristic
is the smallest unit of data that a computer uses.
problem-solving approach uses practical methods rather than rigorous logic
problem that involves finding the best solution from all possible solution
A formal language used to instruct computers and define algorithms.
59
A device is programmed to change its display screen with a gyroscope's help inside. What sort of programming is this?
reactive
sequential
procedural
event-driven
60
which of the statements below BEST describes what will happen if ISP X, Host 3, and Host 11 are not working?
Y receive packets indctng failure to 3 and re-route data to a working host
Host 1 will compensate for the outage and route the data accordingly
The Client will not receive any data due to the outage
none
61
What will the following code segment display?
10
Nothing will be displayed due to the error index out of bounds.
1 4 7 10 9
9 10 7 4 1
62
Which of the following types of components is necessary for cybersecurity?
I only
I and II only
III only
I, II, and III
63
What will be the result of the displayed program?
14 6
6 14
7 5 9
9 5 7
64
Which of the following will correctly replace /*missing code */ ?
CAN_MOVE (right)
NOT CAN_M0VE (right)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
NOT CAN_MOVE(forward)
65
application program interface (API)
False
True
66
Which of the following events is most likely to take place among the DNS servers?
The .org name server will send the IP address of widgets.cs.fbhs.org
The widgets name server send the IP address of the widgets.cs name server.
The widgets.cs.fbhs.org name server send IP address of widgets.cs.fbhs.org
The .org name server will send the IP address of the fbhs.org name server.
67
What should be the order in which these functions are called for the algorithm to work properly?
d. II, I, V, III, IV
a. V, II, IV, III, I
b. IV, V, III, II, I
c. III, V, IV, I, II
68
The findings from a project are typically presented using a graph as opposed to table or raw data. Why might this be? 2
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 slideshow or document while tables cannot
69
Which of the following commands would properly import ThreadLocalRandom?
import java.ThreadLocalRandom
import java.util.concurrent.ThreadLocalRandom
import ThreadLocalRandom.concurrent.util.java
import java.util.function.ThreadLocalRandom
70
bit
problem-solving approach uses practical methods rather than rigorous logic
A formal language used to instruct computers and define algorithms.
problem that involves finding the best solution from all possible solution
is the smallest unit of data that a computer uses.
71
What will the following program display?
The program is an infinite loop.
OXXOO
OXXOXXOXX
OOOXX
72
Which of the following correctly identify methods of DNS cache poisoning? Select
two
answers.
DNS BINDing
Rogue Servers
Masquerading
DNS Key Distribution
73
run-time error
True
False
74
Ford wants to design sensors for cars. What would not be a parameter for testing when these sensors are simulated?
Whether the sensor can sense multiple obstacles simultaneously
Whether a swerve around a bend would cause a car accident
No incidents will be simulated
Whether the sensor can judge distance from different obstacles
75
scalability
The ability of a system to handle growing amounts of work or data.
method of searching for a value in list by checking each element in order.
ability to accomplish a task w/minimal waste of time, resources, or effort
problem there exists an algorithm that can always provide a correct answer.
76
instance of a problem
The process of converting encrypted data back into its original form.
A specific example or case of a problem that can be solved.
A problem that requires a yes/no answer based on certain criteria.
A situation that requires a solution.
77
current connection speed is 700 (kps). Approximately how long will the download take if her video is 400 megabytes
571 seconds
175 seconds
1.75 seconds
57.1 seconds
78
Colors rep by dec values from 0-255. If each pixel is a combo of three color values, what is the min bits amt 4 1 pixel
512
8
24
256
79
sequencing
The concept of executing instructions in a fixed order, one after another.
process of converting data into coded format to prevent unauthorized access
process of simplifying systems by focusing only on the necessary details.
A step-by-step procedure for solving a problem or accomplishing a task
80
problem
A specific example or case of a problem that can be solved.
A situation that requires a solution.
A problem that requires a yes/no answer based on certain criteria.
The process of converting encrypted data back into its original form.
81
Bill has been defrauded and is a victim of which e-mail scam?
Social Engineering
Spearing
Phishing
Denial of Service
82
Which of the following is the most likely data privacy concern for the original browser?
information collected used to brand you as members of a particular group.
Cookies r txt fls tht kp trck of things as wbst vsts & actvtes n tht wbst
Cookies are used to acquire users’ private encryption keys.
Cookies are responsible for spam and create pop-up advertisements.
83
What percentage of the time will the program display an even number?
50%
40%
10%
20%
84
What will be the values of x and y after this code segment executes?
x is 20, y is 20
x is 30, y is 40
x is 40, y is 30
x is 40, y is 40
85
What will y display?
15
20
16
0
86
Which of the following best approximates the minimum possible time to run all three processes in series?
9s
28s
15s
4s
87
Which of the following codes will output a TRUE statement if executed?
((NOT(true AND false)) AND (false OR true))
((true AND false) AND (false OR true))
((NOT (true)) OR (false AND true))
((true OR false) AND NOT (false OR NOT (true))
88
What sort of connection should this organization consider to improve its processing capabilities?
The organization should consider maintaining sequential computing model
The organization should consider limiting the data collection requirements
The organization should consider adding additional servers
The organization should consider using a distributed computing model
89
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x < 8
x >= 6
x > 10
x < 6
90
Instead, it records an error when trying to display total value contained in the list. What type of error?
Runtime error
Syntax error
No error; the program works as intended
Logical error
91
Which of the following must be true about the code that she writes?
Selection is necessary, but looping is not.
Looping is necessary, but selection is not.
Neither selection nor looping are necessary.
Both selection and looping are necessary.
92
What procedure will result in the robot landing on the star?
Select two answers
1. moveAndSpin(0, 1)2. moveAndSpin(6, 3)3. moveAndSpin(4, 0))
moveAndSpin(7, 3)
moveAndSpin(0, 7)
1. moveAndSpin(4,1) 2. moveAndSpin(6,0)
93
program inputs
problem that involves finding the best solution from all possible solution
problem-solving approach uses practical methods rather than rigorous logic
A formal language used to instruct computers and define algorithms.
is the smallest unit of data that a computer uses.
94
Which storage method makes accessibility of data easiest for people in multiple locations wanting to utilize the data?
Mainframe Computer, as it can be accessed from many computers.
Magnetic Drive System. as it can handle all data types.
USB Flash Drive, as it can be copied and handed or mailed to multiple users
Cloud Drive, as it allows for multiple users and version control.
95
What percentage of the time will the following program display a number?
20%
75%
10%
25%
96
linear or sequential search
The ability of a system to handle growing amounts of work or data.
ability to accomplish a task w/minimal waste of time, resources, or effort
method of searching for a value in list by checking each element in order.
problem there exists an algorithm that can always provide a correct answer.
97
What does the algorithm display?
3
5
7
4
98
What is the following program returning?
27
20
37
25
99
algorithm
process of converting data into coded format to prevent unauthorized access
process of simplifying systems by focusing only on the necessary details.
A step-by-step procedure for solving a problem or accomplishing a task
The concept of executing instructions in a fixed order, one after another.
100
Which of the following test cases will return the correct average using the above procedure
numbers[1, 1, 35, 6]
numbers[11, 35, 6]
numbers[3, 5, 11, 6]
numbers[0, 1, 35, 6]