What is a variable in Python?
Python Basics Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Mr McCallion
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A reserved memory location to store values
A mathematical equation
A type of snake in the Amazon rainforest
A type of data structure in Python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are all built-in data types in Python?
integer, float, string, boolean, list, dictionary
number, boolean, string, vector, class
variable, selection, iteration
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between integer and float data types?
Float data type stores both whole and decimal numbers, while integer data type stores only whole numbers.
Integer data type stores whole numbers, while float data type stores decimal numbers.
Integer data type can be used for text data, while float data type is only used for numerical data.
Integer data type stores decimal numbers, while float data type stores whole numbers.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a variable in Python?
value = variableName
variableName = value
variableName == value
value == variableName
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(type(5))?
5
<type 'int'>
NoneType
integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
x = 5
y = 'Hello'
print(x + y)
None
TypeError
10
SyntaxError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
x = 10
y = 3
print(x // y)
3
30
2.5
7
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Lesson 1: Variables (Activity)

Quiz
•
8th - 10th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
11 questions
python revision

Quiz
•
9th Grade
15 questions
Python_quiz

Quiz
•
11th Grade
10 questions
data_type

Quiz
•
12th Grade - University
9 questions
Comparison operators

Quiz
•
6th - 11th Grade
10 questions
Python: Functions and Parameters

Quiz
•
9th - 12th Grade
10 questions
Dasar Pemrograman C++

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University