Quiz on Variables

Quiz
•
Information Technology (IT)
•
7th Grade
•
Medium
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable?
A) A special character in coding
B) A place to store information in a program
C) A type of animal in a game
D) A method of deleting data
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data can a variable store?
A) Only numbers
B) Only text
C) Numbers, text, or True/False values
D) Only images
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is an example of a variable in a game?
A) The colour of the background
B) The game’s music
C) The player’s score
D) The game’s graphics
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name?
A) 1stPlayer
B) player name
C) playerScore
D) player-name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, how would you declare a variable to store a player’s name?
A) set playerName = "Alice"
B) playerName: "Alice"
C) playerName = "Alice"
D) name.player = "Alice"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the code age = input("Enter your age: ") do?
A) Displays your age on the screen
B) Stores the user’s input as the variable age
C) Changes the user’s age
D) Deletes the user’s age
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these can change throughout a program?
A) A constant
B) A variable
C) A command
D) A function
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Computer Science Quiz

Quiz
•
7th Grade
22 questions
Unit-8 (QB64) Year-6

Quiz
•
6th Grade - University
21 questions
Computer Science Quiz

Quiz
•
7th Grade
27 questions
Microsoft PowerPoint Review Part 1

Quiz
•
6th - 8th Grade
20 questions
quiz1B1

Quiz
•
7th Grade - University
20 questions
365 TCMS Levels 1-3

Quiz
•
7th Grade
21 questions
YEAR 3 ICT LENT TERM ASSESSMENT

Quiz
•
3rd Grade - University
20 questions
Eva_Est_P1_11_PMV

Quiz
•
4th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Characterization

Quiz
•
3rd - 7th Grade
20 questions
Guess The Cartoon!

Quiz
•
7th Grade