What is a variable?
Python Variables

Quiz
•
Computers
•
University
•
Hard
Lintang Wisesa
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A number or text that meaningful
A container for storing data values
A message input by the user
A printout that show answer that user entered
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used in python to assign values to a variable?
=
:
>>>
==
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used in python to create a comment?
>>>
//
@
#
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Below are valid variable names in Python, except...
officeMail
SECRET_KEY
1stName
PhoneNumber
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements assigns the value 100 to the variable x in Python:
var x = 100
x := 100
x = 100
x == 100
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are valid Python variable names:
my_age
version1.3
homeAddress
return
4square
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Python and data processing test

Quiz
•
University
20 questions
[Python For All] Quiz 2 - Rewind.py

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
10 questions
Python Basics

Quiz
•
University
10 questions
Python Dictionaries

Quiz
•
University
16 questions
PAP Module-3 Part-2

Quiz
•
University
20 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
10 questions
Round 1

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade