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