WorksheetsComputer Programming Quiz
Total questions: 25
Worksheet time: 13mins
What is an ALGORITHM?
It is a computer
A set of step by step instructions for problem solving.
It's a math idea
Why will this code not run?
there has to be a number in the variable
there are supposed to be no spaces in the variable label
there are no caps in variables
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
The action of doing something over and over again.
Looping
Bugging
Programming
What is a function in programming?
A block of code that performs a specific task
A type of variable
A syntax error
A data type
What is error handling or debugging in programming?
The process of writing code
The process of finding and fixing errors
The process of defining variables
The process of creating functions
What is the purpose of the "if" statement in programming?
To repeat a block of code
To handle errors
To make decisions based on conditions
To define a function
Which of the following is a syntax error?
Dividing by zero
Misspelling a keyword
Using a variable before declaring it
Infinite loop
Allow functions to perform tasks with specific input values.
velocity
string
parameters
output
A data type that represents a logical value that can only be true or false.
if/then statements
logical operators
counter pattern
boolean
A data type that represents a sequence of characters, words, or symbols.
pseudocode
string
loops
programming
The process of converting human-readable code into machine-readable code.
compile
programming
velocity
conditional
A detailed yet readable description of what a computer program or algorithm should do.
properties
code
pseudocode
flowchart
In programming is a symbol used to combine multiple Boolean expressions (true/false values) and produce a single Boolean result based on rules like "AND", "OR", and "NOT"
logical operators
variable
sprite
properties
A characteristic or attribute of an object that allows you to interact with the object's state without directly accessing its variables.
keyboard
properties
sprite
conditional
What is a function in programming?
A block of code that performs a specific task
A type of variable
A loop that runs indefinitely
A conditional statement
Series of step by step instructions for your computer to follow
IP Address
Coding
Bits
Firewalls
Define Program
A programming construct that allows a program to execute specific instructions based on whether a certain condition is true or false
flowchart
boolean
conditional statement
velocity
The rate at which a developer can write code.
Words per minute
acceleration
speed
velocity
A common programming technique where a variable is used to keep track of a count by incrementing or decrementing its value within a loop or event.
compile
counter pattern
for loops
boolean
A graphic object that can be programmed to move, interact, and respond to events in a game, animation, or story.
input
character
sprite
variable
