Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Quizizz 1-23

Total questions: 67

Worksheet time: 38mins

Name
Class
Date
1.

Computers are really good at "repeating commands" which are known as ____ in computer language.

a)

Loops

b)

replays

c)

if statements

d)

conditionals

e)

variables

2.

a programming construct used to repeat a set of commands as long as a condition is true

a)

While loop

b)

Event

c)

While Event

d)

For Loop

e)

Until Loop

3.

a loop within a loop, an inner loop within the body of an outer one.

a)

Nested loop

b)

While Loop

c)

While Event

d)

For Loop

e)

Until Loop

4.

loops that have a predetermined beginning, end, and increment (step interval)

a)

Nested loop

b)

While Loop

c)

While Event

d)

For Loop

e)

Until Loop

5.

A loop that tells the program to do something only up to the point that something becomes true.

a)

Nested loop

b)

While Loop

c)

While Event

d)

For Loop

e)

Until Loop

6.

an enlargement, increase, addition

a)

increment

b)

decrement

c)

conditional

d)

Loop

7.

What is the value of each increment on the number line?

a)

5

b)

10

c)

15

d)

20

e)

25

8.

a placeholder for a piece of information that can change

a)

variable

b)

for loop

c)

define

d)

parameter

9.

an extra piece of information passed to a function to customize it for a specific need

a)

programming

b)

while loop

c)

variable

d)

parameter

10.

Programming instructions that are reusable, they make writing and maintaining programs easier

a)

for loop

b)

while loop

c)

function

d)

condition

11.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

12.

The code has a variable within it-What is the variable value?

a)

50

b)

100

c)

15

d)

20

e)

length

13.

The code has a variable within it-What is the variable name?

a)

50

b)

100

c)

15

d)

20

e)

length

14.

How many repeats are there in this challenge?

a)

5

b)

10

c)

15

d)

20

e)

25

15.

We can use a special type of loop to solve this-What is its name?

a)

Nested loop

b)

For loop

c)

While loop

d)

Infinite loop

16.

What type of loop is this?

a)

a variable loop

b)

a for loop

c)

a while loop

17.

What type of loop is this?

a)

a while loop

b)

a for loop

c)

a variable loop

18.

What is a repetitive portion of an algorithm that repeats a specific number of times or until a given condition is met?

a)

iteration

b)

variable

c)

list

19.
  • What occurs when the ending condition will never evaluate to true?

a)

a list

b)

a variable

c)

an infinite loop

20.

What letter do computer scientists use to mean a variable in programming?

a)

an x

b)

a y

c)

an i

21.

What does steps ++ mean?

a)

steps + a variable

b)

steps + 1

c)

steps = 1

d)

steps + 11

22.

What allows us to test solutions or run experiments in a way that is usually cheaper, safer, and often times faster?

a)

a simulation

b)

a trial

c)

an experiment

23.

What will show up in the console log when this program is run?

a)

0 1 2 3 4

b)

1 2 3

c)

1 2 3 4

d)

0 1 2 3

24.

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?

a)

The computer simulation will be able to include more details and complexity than the real-world job placement process.

b)

The computer simulation could test hypotheses about patterns in the job placement process that are costly or time consuming to observe in reality.

c)

The computer simulation will be able to precisely predict the real-world outcomes for each job seeker.

25.

Which of the following is the same loop just written differently? There are two answers.

a)

b)

c)

for the variable i, while i is less than 4, add one to the variable and move forward once

d)

for the variable i, if i is greater than 4, move forward 4 times and add one to the variable

26.

Why is the Internet considered fault-tolerant?

a)

Because it uses a single pathway for data transmission

b)

Because it cannot operate if some of the network breaks down

c)

Because it is a redundant network with multiple pathways

d)

Because it uses closed protocols

27.

What is the role of protocols in the Internet?

a)

They prevent anyone from building systems that connect to the Internet

b)

They are used to reroute data if a connection fails

c)

They standardize communication and are open for anyone to use

d)

They are proprietary rules for sending and receiving data

28.

What is a computer network?

a)

A single computer that processes all data

b)

A physical object that can run a program

c)

A group of computing devices and programs working separately

d)

An interconnected computing system that is capable of sending or receiving data

29.

What is a computing system?

a)

A network of networks like the Internet

b)

A physical object that can run a program

c)

An interconnected computing system that sends data

d)

A group of computing devices and programs working together for a common purpose

30.

What is a computing device?

a)

A program that runs on the Internet

b)

A group of devices working for a common purpose

c)

A physical object that can run a program, such as computers, tablets, cell phones, and smart sensors

d)

A set of protocols for sending and receiving data

31.

What is the World Wide Web?

a)

A) A single page on the Internet

b)

B) A private network within a company

c)

C) A system of linked pages, programs, and files that uses the Internet

d)

D) A type of cloud service

32.

What does packet switching mean?

a)

The ability of a system to work around problems

b)

The inclusion of back-up elements in case one part fails

c)

The Internet sends short bursts of information, not long continuous strings

d)

A unique number assigned to each device on a computer network

33.

What is a packet, in terms of Internet data?

a)

The ability of the Internet to keep working as it grows

b)

A unique number assigned to each device on a computer network

c)

A small chunk of any kind of data that is passed through the Internet

d)

A set of rules that specify the behavior of a system

34.

What is an IP address?

a)

The ability of the Internet to send short bursts of information

b)

A set of rules that specify the behavior of a system

c)

A small chunk of any kind of data

d)

A unique number assigned to each device on a computer network

35.

What is a protocol in the context of computer networks?

a)

A small chunk of any kind of data

b)

A unique number assigned to each device on a computer network

c)

The ability of the Internet to keep working as it grows

d)

A set of rules that specify the behavior of a system

36.

What is fault tolerance?

a)

The ability of the Internet to send short bursts of information

b)

The inclusion of back-up elements in case one part fails

c)

The ability of a system to work around problems

d)

A unique number assigned to each device on a computer network

37.

What does the term "Concatenate" refer to in programming?

a)

The process of testing and fixing bugs in code

b)

A single string made by combining multiple strings

c)

A type of data structure used to store elements

d)

A command to execute a program

38.

What is "Debugging" in the context of programming?

a)

Removing unwanted data from a database

b)

Writing the initial version of a program

c)

The process of testing your code, finding a problem, and solving it

d)

The act of optimizing code to run faster

39.

What is a string?

a)

A collection of numbers only

b)

An ordered sequence of items

c)

A sequence of characters including letters, numbers, and punctuation

d)

A type of list

40.

What is a list?

a)

A sequence of random characters

b)

An unordered group of items

c)

An ordered sequence of items

d)

A type of string

41.

Which of the following is an example of abstraction?

a)

Following a recipe for baking a cake.

b)

Calculating the exact amount of flour needed for a cake.

c)

Describing the taste of a cake in detail.

d)

Drawing a detailed diagram of a cake.

42.

What is sequencing in the context of programming?

a)

The process of finding and fixing bugs in code

b)

The act of repeating a set of instructions a certain number of times

c)

The process of making decisions based on conditions

d)

The process of executing steps in a program sequentially

43.

What is selection in programming?

a)

Executing the same block of code multiple times

b)

Executing steps in a program in a random order

c)

Making decisions based on conditions using if/else statements

d)

Sending fraudulent emails to obtain personal information

44.

What does iteration refer to in programming?

a)

The process of executing steps in a program sequentially

b)

The act of selecting which part of the code to execute based on a condition

c)

The repetition of a set of instructions using loops

d)

The process of phishing for information

45.

What does binary refer to in computing terms?

a)

A) A programming language

b)

B) Anything that has 2 choices

c)

C) A type of data compression

d)

D) A high-level programming concept

46.

What does cloud computing refer to?

a)

A data storage device that is physically located in the sky

b)

Services that are confined to a computer without Internet access

c)

Services that are normally confined to a computer but are now served through the Internet

d)

A weather forecasting technology

47.

Which of the following is an example of cloud computing?

a)

USB Flash Drive

b)

Google Drive

c)

CD-ROM

d)

Local Hard Drive

48.

What is the purpose of a Creative Commons license?

a)

To prevent any use of creative works

b)

To allow users to freely use, remix, and share items with certain conditions

c)

To ensure that all creative works are sold for profit

d)

To restrict the sharing of open source items

49.

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?

a)

Server

b)

Cookies

c)

Client

d)

Reasonable Time

50.

What are cookies in the context of web browsing?

a)

Algorithms that run in polynomial time

b)

Files used to keep track of a user's interaction with a webpage

c)

Problems that are impossible to solve using a computer

d)

Devices that serve information to users

51.

What does Private Key Encryption (Asymmetric Encryption) rely on for encrypting a message?

a)

A) A single key that is shared between the sender and receiver.

b)

B) A public key that is given to everyone and a private key kept only by the receiver.

c)

C) A known algorithm that is kept secret between the sender and receiver.

d)

D) A private key that is distributed to everyone involved in the communication.

52.

What does DNS stand for?

a)

Dynamic Network System

b)

Domain Name System

c)

Digital Network Service

d)

Data Name Specification

53.

What does TCP/IP stand for?

a)

Transfer Control Protocol/Internet Protocol

b)

Transmission Control Protocol/Internet Protocol

c)

Transfer Command Protocol/Internet Protocol

d)

Transmission Command Protocol/Internet Protocol

54.

What is social engineering in the context of unauthorized account access?

a)

Gaining access through a backdoor exploit

b)

Writing passwords on a sticky note

c)

A scammer calling and gaining access knowing some basic personal information

d)

Accessing a gradebook account because the password was shared

55.

What is an example of bad security practice mentioned in the text?

a)

Using a strong password

b)

A student accessing a teacher's gradebook account because the password was on a sticky note

c)

A scammer using social engineering

d)

A casino being robbed due to an IoT device

56.

Why is documenting code important according to the text?

a)

It helps in faster compilation of code

b)

It makes it easier for other programmers to read and understand code

c)

It increases the execution speed of the program

d)

It is required for code to be legally protected

57.

What is the digital divide?

a)

The difference in processing power between old and new computers.

b)

The gap between populations that have Internet/technology access and those who do not.

c)

The legal issues related to distributing copyrighted materials on the Internet.

d)

The advancements in digital electronics and engineering.

58.

What is the result of the operation 17 MOD 5?

a)

2

b)

3

c)

4

d)

5

59.

When do two conditions combined with AND evaluate to true?

a)

When either condition1 or condition2 is true.

b)

When both condition1 and condition2 are false.

c)

When both condition1 and condition2 are true.

d)

When condition1 is true and condition2 is false.

60.

Under what circumstance does an OR operator evaluate to true?

a)

Only when both conditions are false.

b)

When both conditions are true or one of them is true.

c)

When both conditions are true and when both are false.

d)

Only when the first condition is true.

61.

What happens when the condition in an IF statement evaluates to true?

a)

The first block of statements is skipped.

b)

No action is taken.

c)

The second block of statements is executed.

d)

The first block of statements is executed.

62.

What is the outcome when the condition in an IF-ELSE statement evaluates to false?

a)

The first block of statements is executed.

b)

The second block of statements is executed.

c)

Both blocks of statements are executed.

d)

No block of statements is executed.

63.

What does the REPEAT n TIMES block of code do?

a)

It repeats the block of statements until a condition is met.

b)

It executes the block of statements n times.

c)

It creates a new list with n elements.

d)

It terminates the program after n iterations.

64.

What happens when the REPEAT UNTIL(condition) block of code is used?

a)

It repeats the block of statements n times regardless of any conditions.

b)

It repeats the block of statements until the program terminates.

c)

It repeats the block of statements until the Boolean expression condition evaluates to true.

d)

It creates an empty list and assigns it to a variable.

65.

What does the INSERT(aList, i, value) operation do in a list?

a)

Removes the item at index i and shifts all other items to the left.

b)

Assigns the value of aList[i] to the variable value.

c)

Inserts value at index i, shifts any subsequent values one position to the right, and increases the length of the list by 1.

d)

Appends value to the end of aList without changing the other items.

66.

What is the result of the REMOVE(aList, i) operation?

a)

The length of aList is increased by 1.

b)

The item at index i is removed, and the length of aList is decreased by 1.

c)

The item at index i is replaced with the value at the last index of aList.

d)

The item at index i is duplicated and inserted at the end of aList.

67.

What does the FOR EACH item IN aList block of code do?

a)

It removes each item from aList.

b)

It appends each item to aList.

c)

It assigns the value of each element of aList to the variable item sequentially and executes a block of statements for each assignment.

d)

It swaps the values of each item in aList with the next item.