Font size
WorksheetsAP CSP S1 FINAL QUIZIZZ - 20 TEST POINTS
Total questions: 110
Worksheet time: 4hrs 52mins
What two numbers do we use in binary?
-1 & 0
2 & 1
1 & 0
4 & 0
What number does 110 represent in binary?
6
3
8
12
How would you represent the number 5 in binary?
10
100
101
110
What base is binary in?
2
4
1
7
The following program is run. Then the user NEVER clicks the “homeButton” button. What will be displayed in the console?
1 2 3
1 3
1 3 2 2
3 2 1
The following program is run. Then the user clicks the “homeButton” button TWICE. What will be displayed in the console?
1 2 3
1 3
1 3 2 2
3 2 1
I am enjoying this Quizizz...
Very Very Much ! ! !
Very Much ! !
Much !
Not at All
What color is represented by (0, 150, 0)?
Blue
Green
Yellow
Red
What is displayed to the console log?
$10
$ 10
$10.00
error
What gets logged to the console?
[1, 2, 3, 4, 5]
1
myList
error
What gets logged to the console?
[1, 2, 3, 4, 5]
1
myList
2
True
False
True
False
A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?
The song was saved using fewer bits per second than the original song.
The song was saved using more bits per second than the original song.
The song was saved using a lossless compression technique.
Some information is lost every time a file is saved from one location on a computer to another location.
For which of the following lists can a binary search be used to search for an item in the list?
I only
III only
I and III only
I, II, and III
Which of the following school policies is most likely to have a positive impact on the digital divide?
A school allows students to bring a graphing calculator from home to complete in-class mathematics assignments.
A school allows students to bring a tablet computer to class every day to participate in graded quizzes.
A school provides a laptop or tablet computer to all students enrolled at the school.
A school recommends that all students purchase a computer with as much processing speed as possible so that projects run faster.
An online store uses 6-bit binary sequences to identify each unique item for sale. The store plans to increase the number of items it sells and is considering using 7-bit binary sequences. Which of the following best describes the result of using 7-bit sequences instead of 6-bit sequences?
2 more items can be uniquely identified.
10 more items can be uniquely identified.
2 times as many items can be uniquely identified.
10 times as many items can be uniquely identified.
An algorithm has been developed to compute the sum of all the elements in a list of integers. Which of the following programming structures must be added to the existing algorithm so that the new algorithm computes the sum of only the even integers in the list?
Iteration
Searching
Selection
Sequencing
Over winter break I plan to ...
a circuit with two inputs and one output defined such that its output is TRUE (or ON) only when both of its inputs are TRUE (or ON).
AND gate
an elementary building block of a digital circuit. Examples would be AND, OR, and NOT gates that perform basic digital operations.
logic gate
a circuit with one input and one output defined such that its output is TRUE (or ON) when its input is FALSE (or OFF) and vice versa.
NOT gate
a circuit with two inputs and one output defined such that its output is TRUE (or ON) when either or both of its inputs are TRUE (or ON).
OR gate
condition is a true/false condition. It is named after George Boole (1815-1864) an English mathematician.
boolean
any symbol that requires one byte of storage.
character
an informal way of describing an integrated circuit (IC) consisting of millions of tiny circuits.
chip
such as the numeral '5', is an abstraction that represents a single thing, e.g., the value 5.
constant
The process of translating the entire source code into a single binary file.
compilation
a machine that processes information under the control of a program.
computer
can run many different programs (e.g. a smartphone).
general purpose computer
has a fixed program (e.g. a simple calculator, a digital watch, a car's anti-lock braking system).
special purpose computer
An informal term for error in computer hardware or software -- the term was coined by Grace Hopper.
computer bug
consists of the programs that control the computer.
software
includes its electronic and mechanical components that carries out the instructions of a computer program.
hardware
houses the computer's main electronic components.
motherboard
stores the computer's programs and data temporarily while power is on.
RAM
the part of the computer's hardware that interprets and runs the computer program.
CPU
names a memory location to hold different values in your program.
variable
Variables that are declared and exist only inside a procedure or function (this is called their scope).
local variables
sets a variable to a value or a mathematical expression.
assignment
involves values, variables, and operators for example (a+b)/2
expression
input variables for a procedure.
parameters
Inserts x at end of the list
APPEND(list, x)
inserts an element into a list at the index given
INSERT(list, i, value)
removes the element in the given list at the given index
REMOVE(list, x)
data sent to a computer for processing by a program and can be tactile, audible, visual, or text
input
a block of programming statements that controls the flow or behavior of an algorithm.
control structure
Selection or conditional algorithm that allows a program to choose between different actions.
If/Else
occurs when the ending condition will never evaluate to true.
Infinite loop
Loops that have a predetermined beginning, end, and increment (step interval).
For loop
a programming construct used to repeat a set of commands (loop) as long as (while) a boolean condition is true
While loop
a statement that will evaluate to true or false and run code based on the answer
conditional statement
puts a list into alphabetic or numeric order.
sorting algorithm
a step-by-step procedures for solving a particular problem.
algorithm
a search algorithm that repeatedly divides a sorted list to narrow in on the searched-for item
binary search
specify the values of the parameters when a procedure is called.
arguments
an algorithm that checks ever element in a list from the start to the end of the list to find an item.
linear or sequential search
another term for 'repetition'
iteration
a programming language that is directly readable by the computer's CPU.
machine learning
data sent back from the program to the device and can be tactile, audible, visual, or text.
output
a sequence of instructions that controls the computer.
program
a notation for expressing algorithms, which is more precise that ordinary English but less formal than a programming language.
pseudocode
control structure uses a true or false condition to determine which of two parts of an algorithm is used.
selection
control structure that is the application of each step of an algorithm in the order in which the statements are given.
sequence
a non-executable block of text that can be added to a program to provide clarification and documentation of the code.
comment
Putting two strings together to make a new string.
concatenation
a system of rules that govern the behavior of some system.
protocol
A sequence of characters that can be stored in a variable or list.
string
Part of an existing string
substring
solve by trial and error; trying every possible option
brute force
how well an algorithm uses time and memory/space resources, CPU and RAM
efficiency
A procedure that computes and returns a value.
function
A value sent back by a function to the place in the code where the function was called form
return value
<, >, <=, >=, ==, != indicate a Boolean expression
comparison operators
users are asked to present several separate pieces of evidence involving knowledge (something they know like a password), possession (something they have like a texted code), and/or inherence (something they are like biometrics).
multi-factor authentication (MFA)
The process of removing errors from computer hardware or software.
debugging
a computational model in which operations are performed in order, one at a time on one processor or computer
sequential computing
the number or position of an element in the list.
index
In computer science, this stores multiple items under one variable name and uses an index to number and access them.
list
Symbols like +,-,*,/ used for addition, subtraction, multiplication, division.
operator
in computer science is the practice of organizing and encapsulating algorithms in named procedures that can then be invoked by name. An example would be the 'sqrt(x)', square root of x, which encapsulates the algorithm for calculating the square root of x.
procedural abstraction
the lack of pattern or regularity. A random sequence of events has no order or pattern.
random
data means to transmit data from a computer to an online repository or service such as a bulletin board service, or drop box, or network.
upload
gives the remainder when one number is divided by another.
mod operator
an event that cannot be predicted with certainty. Examples would include flipping a fair coin, rolling a die, picking a card from a well shuffled deck.
random event
an algorithm that generates a sequence of numbers that seem to occur in random order.
random number generator
Computing Device
A group of computers working together for a common purpose
A group of connected computers that can send or receive data
A machine that can run a program
A sequence of direct connections
computing system
A group of computers working together for a common purpose
A group of connected computers that can send or receive data
A machine that can run a program
A sequence of direct connections
computing network
A group of computers working together for a common purpose
A group of connected computers that can send or receive data
A machine that can run a program
A sequence of direct connections
path
A group of computers working together for a common purpose
A group of connected computers that can send or receive data
A machine that can run a program
A sequence of direct connections
Which of the following best describes the protocols used on the Internet?
The protocols of the Internet are secret to maintain the privacy and security of people using them
The protocols of the Internet are designed by government agencies to ensure they remain free to use
The protocols of the Internet are open and used by all devices connected to the network
Each device connected to the Internet will use a protocol designed by the company that manufactured it
Jesse purchases a new smartphone and is immediately able to use it to send a photo over the Internet to a friend who lives in a different country. Which of the following is NOT necessary to make this possible?
A single direct connection is established between any two devices connected to the Internet
The data of the image is routed through a sequence of directly connected devices before arriving at its destination.
Both devices are using the same shared and open protocols
Both devices are directly connected to at least one part of the Internet
This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection. What is the MINIMUM number of paths that would need to be broken to prevent Computing Device A from connecting with Computing Device E?
1
2
3
4
This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection. Device A is attempting to send data over the Internet to Device E. Which of the following is true of how the data will travel through the network?
If the data travels through Device D then it will not travel through Device B
Answer
It is possible that the data travels through any of the devices in the network before arriving at device E
The data will never be sent to Device G since there are other shorter paths available
The data will always travel through Device B as it is the shortest path
Which of the following is true of how the Internet has responded to the increasing number of devices now using the network?
The protocols of the Internet were designed to scale as new devices are added
The protocols of the Internet are no longer necessary thanks to the large number of devices now connected to the network
The Internet protocols are changed every year to adapt to the new devices that have been connected to the network
While the number of devices connected to the Internet has grown, the network itself has not grown
Which of the following is true of how packets are sent through the Internet?
Packet metadata is only included on important packets to indicate they should get access to faster paths through the network
Information sent through the internet is only encapsulated in packets if the message is too large to be sent as a datastream
Information sent through the internet is split into two packets, one which contains the message and another which contains the metadata
Packet metadata is used to route and reassemble information travelling through the Internet
Emilee is watching an online video. The video is being sent to her laptop by a server over the Internet which splits the video into packets and sends them in the order they appear in the video. Which of the following is true about how the packets will arrive at her computer?
The packets may arrive out of order
Packets that arrive out of order will be sent back to the server.
Either every packet will reach her computer or none of them will.
The packets will always be received in the order that they were sent
Which of the following best describes the purpose of an IP address?
IP addresses provide a unique number for identifying devices that send and receive information on the Internet
IP addresses assist in the reconstruction of a message that has been divided into many packets
IP addresses indicate the location where an internet-connected computing device was manufactured
IP addresses indicate how many times an individual packet has been requested by a router
Which of the following Internet protocols is MOST important in reassembling packets and requesting missing packets to form complete messages?
User Datagram Protocol (UDP)
Transmission Control Protocol (TCP)
HyperText Transfer Protocol (HTTP)
Internet Protocol (IP)
Which of the following Internet protocols is used to request and send pages and files on the World Wide Web?
User Datagram Protocol (UDP)
Internet Protocol (IP)
HyperText Transfer Protocol (HTTP)
Transmission Control Protocol (TCP)
Two devices are connected to the Internet and communicating with one another. A squirrel chews through one of the wires in the network that is currently being used by the devices to communicate. The network immediately begins using a different path through the network and communication continues as normal. This situation best exemplifies which principle?
fault-tolerance
scalability
protocol
pathing
An Internet Service Provider (ISP) is a company that builds the routers and wired connections that allow individuals to access the Internet. An ISP is considering adding additional redundant connections to its network. Which of the following best describes why the company would choose to do so?
Redundant networks are more reliable
It costs less to design a network that is redundant
Adding additional connections reduces the fault-tolerance of the network
The protocols of the Internet only work on networks that are redundant
Which of the following situations is most likely to cause issues arising from the digital divide?
A state makes voter registration forms available only by visiting a government website
Two internet-connected devices located in different countries and thousands of miles apart attempt to communicate with one another
Packets sent from one router to another begin arriving in a different order than they were sent
A smartphone attempts to communicate over the Internet with another type of device, like a tablet or laptop
Which of the following is MOST likely to be an outcome of the digital divide?
People will have equal access and influence both globally and locally.
Certain companies will be unable to certify their technology as digitally secure.
People from some racial or ethnic groups have unequal access to computing technology.
Political groups in some countries are unable to agree on regulations of digital technology.
Choose the correct definition for the Router.
a computer that is portable and suitable for use while traveling.
the software that supports a computer's basic functions
a computer that is suitable for any regular desk
a device that forwards data packets along networks.
Which of the devices in the network are considered computing devices?
A smart temperature sensor: It runs a program that checks whether the temperature is above or below the target range for that time of day and then triggers the heating or cooling system when needed.
A security camera: It uses a machine learning algorithm to detect non-plant motion and sends video footage to a computer.
A desktop computer: It generates a graph of the temperature based on data from the temperature sensor and stores video footage from the camera.
A wireless router: It uses networking software to enable the sensor, computer, and camera to send data to each other.
Just the desktop computer
Just the desktop computer and wireless router
The desktop computer, security camera, and router
All of them (the computer, router, camera, and sensor)
A small part of the data is sent over the network.
Data packet
Router
File
IP address
What is meant by an internet protocol?
A software application used for sending and receiving emails.
The process of browsing websites and accessing online content.
A set of rules and protocols that govern how data is transmitted over the internet.
The physical infrastructure that enables internet connectivity.
The transmission control protocol (TCP) and Internet protocol (IP) are used in Internet communication. Which of the following best describes the purpose of these protocols?
To ensure that communications between devices on the Internet are above a minimum transmission speed
To ensure that private data is inaccessible to unauthorized devices on the Internet
To establish a common standard for sending messages between devices on the Internet
To validate the ownership of encryption keys used in Internet communication
Which of the following Internet protocols is MOST important in reassembling packets and requesting missing packets to form complete messages?
Transmission Control Protocol (TCP)
Internet Protocol (IP)
User Datagram Protocol (UDP)
HyperText Transfer Protocol (HTTP)
Which of these is not a protocol that powers the Internet?
IP
TCP
HTTP
UDP
MFA
Assume that the two variables age and day have been initialized with the values shown.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
(age > 10) && (age < 20)
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
!(age > 10)
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
(day == "Tuesday") || (age < 12)
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
!((age == 16) || (day == "Monday"))
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
!((age == 16) && !(day == "Monday"))
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
((age == 16) && (day == "Monday")) && (day == "Tuesday")
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
((age == 16) && (day == "Monday")) || (day == "Tuesday")
true
false
Assume that the two variables age and day have been initialized as shown below.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
((age > 10) && ((age + 5) > 20))
true
false
A program is:
a series of steps to complete a task that a computer can understand.
Python, JavaScript, Java, PHP, and Ruby
the action we want the program to take.
a condition that is false.
Coding is:
Python, JavaScript, Java, PHP, and Ruby
the action of writing instructions for a computer in a language that it can understand.
a language that is more precise than English but less precise than a coding language.
a specific action to be taken if the condition is false.
What is syntax?
a catch-all for every other situation besides true.
pieces of code that direct the program to run in different ways depending on what else is happening.
a set of rules for how a language is written.
English, Chinese, or Spanish.
Control flow statements:
pieces of code that direct the program to run in different ways depending on what else is happening.
determine which code is being carried out at a given time.
give the program the flexibility to go down more than one path.
all of these.
Pieces of code that only run "under certain conditions":
conditional statements
control flow statments
syntax
variables
What is a condition?
JavaScript
Something that has to be true in order for an action to be carried out.
syntax
pseudocode
This is a catch-all for every other situation besides the one where the condition is true.
then
do
else
if
What is/are true about pseudocode?
somewhere between English and a coding language.
more precise than English but less precise than a coding language.
used by programmers to figure out the logic and flow of their programs without having to worry about syntax.
all of these
A variable is...
is a placeholder for a piece of information that can change.
is like a bucket for holding information.
can be written as letters or with longer words.
all of these
Which symbol means "not equal to"?
==
<=
>=
!=
Which of the following is a test statement?
color = sprite.ask("What's your favorite color?")
sprite.say("So your favorite color is " + color.")
if color == "red":
color = "red"
Which of the following best describes what a test statement is?
This part is the code that runs in a conditional if the condition is true
This is the part of the code that checks whether a condition is true or false
This is a code that shows how many times a loop should run
This is a code that saves multiple pieces of information in one place
Which of the following best describes what the nested code part of a conditional is?
This part is the code that runs in a conditional if the condition is true
This is the part of the code that checks whether a condition is true or false
This is a code that shows how many times a loop should run
This is a code that saves multiple pieces of information in one place
How many test statements does this program have?
1
2
3
4
What happens if the user inputs "winter" into the first question in this program?
The background changes to a winter background
The user is asked another question
The sprites says "Sad..."
The sprite says "Me too!"
Which of the following best describes what a flowchart is?
A diagram that shows each step of a process or algorithm
Conventions for making code easier for people to read
The line of code in a conditional that checks if something is true or false.
The line of code in a conditional that's indented over
Which of the following symbols compares two values to see if they are the same?
=
[ ]
==
""
According to the following flow chart, what will happen right after the user chooses "red"?
The sprite will ask "Would you like to choose the red door, or the blue door?"
The sprite will say "You win a car!"
The sprite will say "You win a house!"
The sprite will say "Thanks for playing!"
According to the following flow chart, in what situation will the sprite say "Thanks for playing!"?
If the user chooses "red"
If the user chooses "blue"
All of the above
None of the above
Which of the following programs follows the flowchart here?
In this program, there are several variables and If and statements. Check ALL of the lines that will be said by the program after the code is run.
"Cool!"
"Mindblowing!"
"Sweet!"
"Far out!"
Which of these best describes when you want to use a conditional?
When you want to repeat some code
When you want to save a value
When you want the program to do different things depending on user input
When you want to add a certain amount to your variable
Which of these is NOT a conditional?
If-else
If-And
If statement
For Counter
Which line of code here has an error?
1
3
5
6
To check if two values are the same, you need the (a) sign.
I have a program that has two variables, day and month. day tells you which # day it is, while month tells you which #r month it is. (Ex, for May 20 the month would be 5 and the day would be 20) Which kind of conditional would I need to check if today is Christmas?
If else
If
If And
For Counter
I want to write a program that if the day is a friday, the program says "TGIF!" and if it isn't, it says "Hang in there!" What kind of conditional do I need?
If else
If
If And
For Counter
I want to write a program so that if the user gets to 100 points, the program says "Congrats!" Which conditional should use?
If else
If
If And
For Counter
Which of the following variable declarations are right?
var 10 =10;
var num = 10;
var name = "Bob";
var number 10 = 10;
What is the value of x here?
(a)
What is the value of z?
(a)
Is this statement true or false? ( write true or false)
(a)
Is this statement true or false? (write true or false)
(a)
Is this statement true or false? (Write true or false)
(a)
Which statement will be printed to the console?
I am 5
I am not 5
I'm not sure
Nothing will be printed
Which of these statements will be printed?
I am less than or equal to 10
I am none of the options
I am 5
What will be printed to the console?
You are in elementary school
You are in high school
You are in some other school
What will be printed to the console?
You passed
You failed
None of the options
What will be printed to the console log?
You got the average
You failed
Congrats you get ice cream!
!
Not
||
or
&&
and
Logical Operator
A symbol or word used to connect two or more expressions
An expression that produces a true or false when evaluated
Boolean Expression
Any expression that can be evaluated for true or false is known as a ________ __________.
(a)
3 < 8 evaluates to? (a)
Evaluate the expression for a Boolean Value
