
Python Data Types

Quiz
•
Computers
•
8th Grade
•
Medium
Joy Perez
Used 9+ times
FREE Resource
Student preview

15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = 5
print(type(x))
list
str
int
range
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = "Hello World"
print(type(x))
set
bytes
bool
str
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = 20.5
print(type(x))
int
float
set
memoryview
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = ["apple", "banana", "cherry"]
print(type(x))
tuple
list
dict
bool
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = ("apple", "banana", "cherry")
print(type(x))
tuple
list
bool
int
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = {"name" : "John", "age" : 36}
print(type(x))
dict
list
tuple
str
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following code example would print the data type of x, what data type would that be?
x = {"name" : "John", "age" : 36}
print(type(x))
float
str
bool
int
Create a free account and access millions of resources
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade