stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Tran, Katelyn AP Exam Review Flashcards | StudBud
Explore
/
Tran, Katelyn AP Exam Review
Tran, Katelyn AP Exam Review
91 terms
·
StudBud Administration
Imported from external platform
Flashcards
91 cards
F
Practice quiz
P
Host live
L
Questions
91
Answers
1
What is displayed as a result of executing the code segment?
Golden Bandicoot Cat Fish
Dog Golden Bandicoot Cat Fish
Dog Cat Fish Golden Bandicoot
Dog Cat Fish
2
Why are parameters useful when programming?
Parameters allow for more flexible, generalized behaviors in functions
Parameters determine the number of times the function will run.
Parameters change the order of operations within a function.
3
Which of the following input data is needed by the upgraded game that was
NOT
needed by the original game?
Picture of the player
GPS location
Event sensing; an event would be the user pushing a button or screen
Age of the player
4
Approximately how much bigger (how many more bytes) is a megabyte than a kilobyte?
100,000 times
1,000 times
1,000,000 times
10,000 times
5
Which of the following are benefits to having information be easily accessible and changeable?
I and II only
II and III only
I only
I, II, and III
6
CSList contains the following data[’c’, ’o', ’m’, ’p’, ’u', ’t', ’e’, 'r']what will be displayed by mystery(CSList)
computer computer computer computer computer
cmptr cmptr cmptr
cmptr cmptr cmptr cmptr cmptr
computer computer computer
7
Under which of the following conditions is it most benefcial to use a heuristic approach to solve a problem?
Approximate solutions can solve problems within a reasonable timeframe
If a reasonable solution can be found in a reasonable amount of time
if a reasonable solution cannot be found in a reasonable time
If a problem cannot be solved in a reasonable time with a exact solution
8
How are algorithms & programs related?
they can both be run on a computer
algorithms implement programs
they have a hierarchical relationship
programs implement algorithms
9
Which data is not provided directly by the user, or their device, but is needed for the upgraded game to operate ?
User name
GPS location of user
Location of landmarks used in the game.
Speed traveling
10
Why do we need more than one programming language?
some cannot be compiled & don't run efficiently
there is no reason, just the preference of those who create new languages
some cannot implement needed algorithms
Some are designed for specific uses & only used well in those situations
11
Answer the following
Wiki
RSS Feed
Webopedia
Newsgroup
12
How is collaboration useful in analyzing datasets?
applying different experiences & skills gives better analysis & insight
applying different experiences & skills gives better analysis & insight
multiple viewpoints can give several outcomes for the data
analysis can be divided among several people to speed up the analysis
13
What are two aspects of efficiency?
memory usage and length of code
execution time and length of code
execution time and memory usage
wall clock time and CPU time
14
These drawings depict two fundamental cryptographic conceptsWhich of the choices below properly identify these concepts
Lexicographic and Asymmetric
Symmetric and Steganography
Hash Codes and Key Transfers
Asymmetric and Symmetric
15
What can help with identifying & correcting program errors?
clustering requirements & tests
revisiting requirements
consolidating testing
collaboration
16
What is the minimum number of lines that must be cut to isolate F completely?
8
0
4
6
17
Which of the following is a cause of the digital divide?
Lack of access to technology due to location
All of the above
Lack of knowledge on how to use technology
Lack of access to the technology due to affordability
18
What is itteration
True or false values only
True or false
the repetition of a process or utterance
Not so sure
19
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
20
What is displayed by running the code segment?
3 11 3
8 4 6
11 3 8
3 3 6
21
Answer the following question
9 6 3
9 6 3 0
10 8 7 5 4 2 1
10 8 7 5 4 2 1 0
22
What is selection?
include more than one path through an algorithm
True or false
Computer science AP
Code in the a specific order
23
Answer the following:
(onFloor1 OR callTo2) AND (onFloor2 OR callTo1)
(onFloor1 AND callTo2) OR (onFloor2 AND callTo1)
(onFloor1 OR callTo2) OR (onFloor2 OR callTo1)
(onFloor1 AND callTo2) AND (onFloor2 AND callTo1)
24
What will the following code segment display?
Nothing will be displayed due to an error.
11
6
3
25
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
26
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]
27
Answer the following
II and III
II only
I , II , and III
I only
28
Which of the following events is most likely to take place among the DNS servers?
The widgets.cs.fbhs.org will send the IP address of widgets.cs.fbhs.org
The .org name server will send the IP address of widgets.cs.fbhs.org
The widgets name server will send the IP address of the widgets.cs
The .org name server will send the IP address of the fbhs.org name server.
29
Why is cryptography essential to cybersecurity?
Information about what types of mobile devices can be used
What protocols the mobile device uses to connect to the internet
Location of high-crime areas that should be avoided
Location of highly trafficked roads and bridges
30
What protocol below guides the rules about how data are subdivided into packets before transmission?
HTTP
TCP
FTP
DNS
31
What command can replace <Missing condition> to get the results shown in the fourth column of the table?
NOT(a OR a)
NOT b
a OR b
NOT(a AND b)
32
Which of the following statements are true about high-level programming languages? Select two answers.
A high-level programming language does not ensure program reliability.
A high-level programming language allows for code to be re-used.
A high-level programming language often uses natural language elements.
33
Which of the following are true statements about digital certifcates in Web browsers?
I only
Neither I nor II
I and II
II only
34
Which of the following illustrate ways that the internet facilitates collaboration
I only
II and III only
I and III only
I, II, and III
35
Consider the following program code.Which of the following best describes the result of running the program code?
Nothing is displayed; the program results in an infinite loop.
The number 0 is displayed.
The number 10 is displayed.
The number 6 is displayed.
36
What percentage of the time will the program display an even number?
10%
20%
50%
40%
37
Select the answer that lists the units of bytes in ascending order (from smallest to largest)
gigabyte, megabyte, terabyte
kilobyte, gigabyte, terabyte
megabyte, terabyte, kilobyte
gigabyte, terabyte, megabyte
38
What is displayed after the following algorithm is run?
32
50
100
132
39
According to the domain name system (DNS), which of the following is a subdomain of the domain example.com?
example.co.uk
about.example.com
example.org
example.com.org
40
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
41
In the following flowchart, what is the value of RESULT?
True when either A or B are true
Always false
True when both A and B are true
Always true
42
What could a single binary value represent?
Temperature in degrees Celsius
If a light is on or off
Time
Volume on a radio
43
What is the code segment displaying?
17
68
34
0
44
Answer the following
Apply for a small business loan through an online bank.
Utilize a crowdsourcing website to raise the needed capital.
Create a bulk email campaign that sends emails to all of the students
Design and create a website in hopes a venture capitalist will come to them
45
Answer the following:
Does the animal travel in groups with other tracked animals?
Approximately how many miles did the animal travel in one week?
Do the movement patterns of the animal vary according to the weather?
In what geographic locations does the animal typically travel?
46
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)
47
What will the following program display?
The program is an infinite loop.
OXXOXXOXX
OOOXX
OXXOO
48
Which of the following best approximates the minimum possible time to run all three processes in series?
4 seconds
28 seconds
15 seconds
9 seconds
49
What is returned by
mystery (1, 2)
?
4
10
2
8
50
Which of the following considerations is likely to affect the ability of the program to process large data sets?
The order of the data put into the data set
How many program statements the program contains
The amount of program documentation that should be minimized
How much memory the program requires to run
51
Consider the following below:
var temp = from;from = to;to = from;
from = var temp;to = temp;from = to;
to = from;from = to;
var temp = from;from = to;to = temp;
52
Answer the following question below:
Input A must be false.
Input A must be true.
Input A can be either true or false.
No value of input A will result in true
53
Which of the following types of components is necessary for cybersecurity?
III only
I only
I and II only
I, II, and III
54
What will be the result of the displayed program?
14 6
9 5 7
7 5 9
6 14
55
Which of the following decimal (base-10) values is equivalent to the binary (base-2) value 1010
82
41
22
37
56
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x >= 9
x >= 6
x < 6
x > 10
57
What's true about packets sent when sharing a photo via mobile app to a friend's phone?
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
All of the above.
Packets are received in the order that they are sent
58
What is the minimum number of searches for a binary search using an ordered list of 100 numbers?
8
0
100
1
59
Which of the following is the
MOST
likely data privacy concern of the upgraded game?
The player’s score
How much time a person spent playing the game
Recording whether the player was speeding when driving to a location.
How many locations the player visitedHow many locations the player visited
60
Which of the following is an effect that the "digital divide" has on the given group?
Taxi and carpool drivers without computers cannot find efficient routes
Without computers, students cannot access school resources and programs
Teachers without computers are unable to grade work at all
Without computers, mathematicians cannot evaluate integrals
61
What is the minimum number of binary digits needed to store the number 56?
6
3
5
1
62
Answer the following question
II and IV
I only
II, III, and IV
I, II, III, and IV
63
Which of the following is true about redundancy on the internet?
II and III
I only
I and II
I, II, and III
64
Which of the following is FALSE about element IDs?
Two or more on Event calls may reference the same ID.
Any element that needs to be triggered by onEvent must have a unique ID.
Unique ID must always have an event handler associated with it
While not a requirement, IDs should be meaningful and descriptive
65
Answer the Following below:
6
4
10
12
66
Answer the following:
8
24
256
512
67
How does a computer resolve a domain name into an IP address?
It uses a Border Gateway Protocol to get the address from a nearby computer
It creates an IP address for the domain, and shares it with the closest DNS
It scans addresses until it finds the one it's looking for.
It asks a DNS server for the corresponding IP address.
68
Answer the following question
57.1 seconds
571 seconds
175 seconds
1.75 seconds
69
Which of the following protocol standardization is NOT a function of the IETF (Internet Engineering Task Force)?
JavaScript Coding Protocol
Simple Mail Transfer Protocol
Hypertext Transfer Protocol
Internet Protocol
70
What will be the values of x and y after this code segment executes?
x is 40, y is 30
x is 40, y is 40
x is 20, y is 20
x is 30, y is 40
71
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
More resources yield correct results efficiently.
An efficient solution makes it harder to copy an algorithm
72
Given the importance of sharing insight & knowledge from processing data, how can this be effectively communicated?
using tables & diagrams of the findings
using summaries of the insights
providing detailed examples of the data to prove accuracy
All of the above
73
Which of the following activities poses the greatest personal cybersecurity risk?
Reserving a hotel room by e-mailing a credit card number to a hotel
Withdrawing money from a bank account using a ATM
Secure online purchase with encrypted credit card transmission
Paying a bill using a secure electronic payment system
74
Answer the following question
NOT CAN_MOVE(forward)
NOT CAN_M0VE (right)
CAN_MOVE(right) OR NOT CAN_MOVE(forward)
CAN_MOVE (right)
75
Which best describes the role of TCP?
The foundation of data communication for the World Wide Web
The set of rules for the path packets taken on the fault-tolerant internet
Establishing numerical labels for internet-connected devices
A standard encryption protocol for internet data transfer
76
Browser contacts server via IPv4, requests website address. Which response is invalid?
54.116.188.246
174.260.45.144
92.11.198.113
128.198.232.65
77
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 fireflies during the summer months
Collecting recordings using ultrasonic microphones and sonograms of bats
The behavior of a mysterious and wonderful jellyfish on the beach or water
78
Answer the following question
DNS Key Distribution
DNS BINDing
Masquerading
Rogue Servers
79
What percentage of the time will the following program display a number?
10%
75%
20%
25%
80
Which of the following is NOT true about functions in programming?
Functions help reduce the complexity of writing and maintaining programs
Functions cannot make calls to other functions within the same program
Functions help break a problem into logical chunks.
Functions are reusable programming abstractions.
81
If the variables onTime and absent both have the value false, what is displayed as a result ofrunning the code segment?
Hello. Better late than never.
Hello. Is anyone there?
Better late than never.
Is anyone there?
82
Answer the following
Spearing
Social Engineering
Phishing
Denial of Service
83
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
ISP Y will receive packets resulting a failure to Host 3 and route the data
Host 1 will compensate for the outage and route the data accordingly
84
Answer the follwing:
Do the movement patterns of the animal vary according to the weather?
Does the animal travel in groups with other tracked animals?
Approximately how many miles did the animal travel in one week?
In what geographic locations does the animal typically travel?
85
Which of the following statements is NOT correct:
Logic gates are used to perform operations such as addition and subtraction
Binary data is processed by physical layers of computing hardware.
Logic gates are modeled by Boolean functions.
Hardware is the lowest level of abstraction.
86
Consider the following code segment. What will the executed code display?
All even numbers between 1 and 12
All odd numbers between 3 and 12
All even numbers between 3 and 12
All odd numbers between 1 and 12
87
Which of the following best approximates the minimum possible time to run all three processes in series?
10 seconds
20 seconds
8 seconds
38 seconds
88
What should replace <missing condition> so that the program below displays TRUE 60% of the time?
x > 10
x < 6
x >= 6
x >= 9
89
What is the appropriate name for the procedure?
ESCAPE()
IS_TRAPPED()
SPIN()
CAN_ESCAPE()
90
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.”
91
Which of the following is a true statement about data transmitted over the internet?
Large companies oversee redundancy in Internet standards.
All data traveling over the internet is in binary.
DNS has been challenged by the Digital Millennium Copyright Act (DMCA).
Packets are received in the same order that they are sent.