WorksheetsAP CSP Quizizz 1-23
Total questions: 67
Worksheet time: 38mins
Computers are really good at "repeating commands" which are known as ____ in computer language.
Loops
replays
if statements
conditionals
variables
a programming construct used to repeat a set of commands as long as a condition is true
While loop
Event
While Event
For Loop
Until Loop
a loop within a loop, an inner loop within the body of an outer one.
Nested loop
While Loop
While Event
For Loop
Until Loop
loops that have a predetermined beginning, end, and increment (step interval)
Nested loop
While Loop
While Event
For Loop
Until Loop
A loop that tells the program to do something only up to the point that something becomes true.
Nested loop
While Loop
While Event
For Loop
Until Loop
an enlargement, increase, addition
increment
decrement
conditional
Loop
What is the value of each increment on the number line?
5
10
15
20
25
a placeholder for a piece of information that can change
variable
for loop
define
parameter
an extra piece of information passed to a function to customize it for a specific need
programming
while loop
variable
parameter
Programming instructions that are reusable, they make writing and maintaining programs easier
for loop
while loop
function
condition
statements that only run under certain conditions
conditionals
paramenter
reflect
variable
The code has a variable within it-What is the variable value?
50
100
15
20
length
The code has a variable within it-What is the variable name?
50
100
15
20
length
How many repeats are there in this challenge?
5
10
15
20
25
We can use a special type of loop to solve this-What is its name?
Nested loop
For loop
While loop
Infinite loop
What type of loop is this?
a variable loop
a for loop
a while loop
What type of loop is this?
a while loop
a for loop
a variable loop
What is a repetitive portion of an algorithm that repeats a specific number of times or until a given condition is met?
iteration
variable
list
What occurs when the ending condition will never evaluate to true?
a list
a variable
an infinite loop
What letter do computer scientists use to mean a variable in programming?
an x
a y
an i
What does steps ++ mean?
steps + a variable
steps + 1
steps = 1
steps + 11
What allows us to test solutions or run experiments in a way that is usually cheaper, safer, and often times faster?
a simulation
a trial
an experiment
What will show up in the console log when this program is run?
0 1 2 3 4
1 2 3
1 2 3 4
0 1 2 3
A job placement agency helps match job seekers with potential employers. The agency would like to design a simulation in order to help predict the likely job placement outcomes for job seekers based on historical trends and patterns. Which of the following is most likely to be a benefit of the simulation?
The computer simulation will be able to include more details and complexity than the real-world job placement process.
The computer simulation could test hypotheses about patterns in the job placement process that are costly or time consuming to observe in reality.
The computer simulation will be able to precisely predict the real-world outcomes for each job seeker.
Which of the following is the same loop just written differently? There are two answers.
for the variable i, while i is less than 4, add one to the variable and move forward once
for the variable i, if i is greater than 4, move forward 4 times and add one to the variable
Why is the Internet considered fault-tolerant?
Because it uses a single pathway for data transmission
Because it cannot operate if some of the network breaks down
Because it is a redundant network with multiple pathways
Because it uses closed protocols
What is the role of protocols in the Internet?
They prevent anyone from building systems that connect to the Internet
They are used to reroute data if a connection fails
They standardize communication and are open for anyone to use
They are proprietary rules for sending and receiving data
What is a computer network?
A single computer that processes all data
A physical object that can run a program
A group of computing devices and programs working separately
An interconnected computing system that is capable of sending or receiving data
What is a computing system?
A network of networks like the Internet
A physical object that can run a program
An interconnected computing system that sends data
A group of computing devices and programs working together for a common purpose
What is a computing device?
A program that runs on the Internet
A group of devices working for a common purpose
A physical object that can run a program, such as computers, tablets, cell phones, and smart sensors
A set of protocols for sending and receiving data
What is the World Wide Web?
A) A single page on the Internet
B) A private network within a company
C) A system of linked pages, programs, and files that uses the Internet
D) A type of cloud service
What does packet switching mean?
The ability of a system to work around problems
The inclusion of back-up elements in case one part fails
The Internet sends short bursts of information, not long continuous strings
A unique number assigned to each device on a computer network
What is a packet, in terms of Internet data?
The ability of the Internet to keep working as it grows
A unique number assigned to each device on a computer network
A small chunk of any kind of data that is passed through the Internet
A set of rules that specify the behavior of a system
What is an IP address?
The ability of the Internet to send short bursts of information
A set of rules that specify the behavior of a system
A small chunk of any kind of data
A unique number assigned to each device on a computer network
What is a protocol in the context of computer networks?
A small chunk of any kind of data
A unique number assigned to each device on a computer network
The ability of the Internet to keep working as it grows
A set of rules that specify the behavior of a system
What is fault tolerance?
The ability of the Internet to send short bursts of information
The inclusion of back-up elements in case one part fails
The ability of a system to work around problems
A unique number assigned to each device on a computer network
What does the term "Concatenate" refer to in programming?
The process of testing and fixing bugs in code
A single string made by combining multiple strings
A type of data structure used to store elements
A command to execute a program
What is "Debugging" in the context of programming?
Removing unwanted data from a database
Writing the initial version of a program
The process of testing your code, finding a problem, and solving it
The act of optimizing code to run faster
What is a string?
A collection of numbers only
An ordered sequence of items
A sequence of characters including letters, numbers, and punctuation
A type of list
What is a list?
A sequence of random characters
An unordered group of items
An ordered sequence of items
A type of string
Which of the following is an example of abstraction?
Following a recipe for baking a cake.
Calculating the exact amount of flour needed for a cake.
Describing the taste of a cake in detail.
Drawing a detailed diagram of a cake.
What is sequencing in the context of programming?
The process of finding and fixing bugs in code
The act of repeating a set of instructions a certain number of times
The process of making decisions based on conditions
The process of executing steps in a program sequentially
What is selection in programming?
Executing the same block of code multiple times
Executing steps in a program in a random order
Making decisions based on conditions using if/else statements
Sending fraudulent emails to obtain personal information
What does iteration refer to in programming?
The process of executing steps in a program sequentially
The act of selecting which part of the code to execute based on a condition
The repetition of a set of instructions using loops
The process of phishing for information
What does binary refer to in computing terms?
A) A programming language
B) Anything that has 2 choices
C) A type of data compression
D) A high-level programming concept
What does cloud computing refer to?
A data storage device that is physically located in the sky
Services that are confined to a computer without Internet access
Services that are normally confined to a computer but are now served through the Internet
A weather forecasting technology
Which of the following is an example of cloud computing?
USB Flash Drive
Google Drive
CD-ROM
Local Hard Drive
What is the purpose of a Creative Commons license?
To prevent any use of creative works
To allow users to freely use, remix, and share items with certain conditions
To ensure that all creative works are sold for profit
To restrict the sharing of open source items
What is the term used for the device/user/computer that sends information TO another device, usually referring to the person sending requests to a website?
Server
Cookies
Client
Reasonable Time
What are cookies in the context of web browsing?
Algorithms that run in polynomial time
Files used to keep track of a user's interaction with a webpage
Problems that are impossible to solve using a computer
Devices that serve information to users
What does Private Key Encryption (Asymmetric Encryption) rely on for encrypting a message?
A) A single key that is shared between the sender and receiver.
B) A public key that is given to everyone and a private key kept only by the receiver.
C) A known algorithm that is kept secret between the sender and receiver.
D) A private key that is distributed to everyone involved in the communication.
What does DNS stand for?
Dynamic Network System
Domain Name System
Digital Network Service
Data Name Specification
What does TCP/IP stand for?
Transfer Control Protocol/Internet Protocol
Transmission Control Protocol/Internet Protocol
Transfer Command Protocol/Internet Protocol
Transmission Command Protocol/Internet Protocol
What is social engineering in the context of unauthorized account access?
Gaining access through a backdoor exploit
Writing passwords on a sticky note
A scammer calling and gaining access knowing some basic personal information
Accessing a gradebook account because the password was shared
What is an example of bad security practice mentioned in the text?
Using a strong password
A student accessing a teacher's gradebook account because the password was on a sticky note
A scammer using social engineering
A casino being robbed due to an IoT device
Why is documenting code important according to the text?
It helps in faster compilation of code
It makes it easier for other programmers to read and understand code
It increases the execution speed of the program
It is required for code to be legally protected
What is the digital divide?
The difference in processing power between old and new computers.
The gap between populations that have Internet/technology access and those who do not.
The legal issues related to distributing copyrighted materials on the Internet.
The advancements in digital electronics and engineering.
What is the result of the operation 17 MOD 5?
2
3
4
5
When do two conditions combined with AND evaluate to true?
When either condition1 or condition2 is true.
When both condition1 and condition2 are false.
When both condition1 and condition2 are true.
When condition1 is true and condition2 is false.
Under what circumstance does an OR operator evaluate to true?
Only when both conditions are false.
When both conditions are true or one of them is true.
When both conditions are true and when both are false.
Only when the first condition is true.
What happens when the condition in an IF statement evaluates to true?
The first block of statements is skipped.
No action is taken.
The second block of statements is executed.
The first block of statements is executed.
What is the outcome when the condition in an IF-ELSE statement evaluates to false?
The first block of statements is executed.
The second block of statements is executed.
Both blocks of statements are executed.
No block of statements is executed.
What does the REPEAT n TIMES block of code do?
It repeats the block of statements until a condition is met.
It executes the block of statements n times.
It creates a new list with n elements.
It terminates the program after n iterations.
What happens when the REPEAT UNTIL(condition) block of code is used?
It repeats the block of statements n times regardless of any conditions.
It repeats the block of statements until the program terminates.
It repeats the block of statements until the Boolean expression condition evaluates to true.
It creates an empty list and assigns it to a variable.
What does the INSERT(aList, i, value) operation do in a list?
Removes the item at index i and shifts all other items to the left.
Assigns the value of aList[i] to the variable value.
Inserts value at index i, shifts any subsequent values one position to the right, and increases the length of the list by 1.
Appends value to the end of aList without changing the other items.
What is the result of the REMOVE(aList, i) operation?
The length of aList is increased by 1.
The item at index i is removed, and the length of aList is decreased by 1.
The item at index i is replaced with the value at the last index of aList.
The item at index i is duplicated and inserted at the end of aList.
What does the FOR EACH item IN aList block of code do?
It removes each item from aList.
It appends each item to aList.
It assigns the value of each element of aList to the variable item sequentially and executes a block of statements for each assignment.
It swaps the values of each item in aList with the next item.
