Variables and Constants Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Ackeema Johnson
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A variable can only store one value at a time.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an example of a constant?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Scenario: Jane is an IT student that needs to calculate the area of a circle. She uses a variable named 'radius' and a constant named 'pi' to represent the mathematical constant pi.
Can Jane can change the value of 'pi' during processing?
Yes
No
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a variable ?
A reserved word in a programming language
A fixed value that never changes
A storage location with a name that holds a changing value
A special symbol used in calculations
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is an example of a valid variable name?
total-marks
2ndStudent
if
student_name
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the main difference between a variable and a constant?
Variables store numbers, while constants store text
Variables can change value, while constants remain fixed
Constants take up more memory than variables
Variables must be written in uppercase letters
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a correct rule for naming variables?
Variable names must begin with a letter or underscore
Variable names cannot contain spaces
Variable names can begin with special symbols like @ and #
Variable names should be meaningful and descriptive
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Python Recap Challenge

Quiz
•
10th Grade
10 questions
Arduino

Quiz
•
12th Grade
15 questions
Python programming language Quiz - Week 9

Quiz
•
9th Grade
16 questions
Programming revision

Quiz
•
9th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
16 questions
Flowcharts

Quiz
•
9th - 11th Grade
14 questions
Computing Revision JCG

Quiz
•
KG - University
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade