
Understanding Variables and Constants Quiz
Authored by John Heatley
Information Technology (IT)
9th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in programming?
A value that never changes
A value that can change
A type of computer
A kind of keyboard
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a constant?
The number of days in a week
The score in a game that keeps changing
The name of a player that can be changed
The temperature outside
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of using variables in a program?
To store changing information
To make the computer look nice
To print out the same thing every time
To slow down the program
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is an example of selection in programming?
Adding two numbers together
Printing a message only if a condition is true
Storing a value in a variable
Writing your name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to store the number of apples in a basket, which would you use?
Variable
Constant
Keyboard
Monitor
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a good example of a constant in a school programme?
The number of months in a year
The number of students in a class
The score in a football match
The temperature in the classroom
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does selection allow a program to do?
Repeat the same thing over and over
Make decisions based on conditions
Store information
Draw pictures
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?