
Python Data Types Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Haden Hiser
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a text type in Python?
dict
list
int
str
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to print the data type of variable x if x = 5?
print(x.type())
print(x.dtype())
print(type(x))
print(dtype(x))
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to set a variable x to a list?
x = ("apple", "banana", "cherry")
x = ["apple", "banana", "cherry"]
x = {"apple", "banana", "cherry"}
x = "apple, banana, cherry"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a boolean type in Python?
1
None
0
True
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you specify the data type of a variable x to be a dictionary?
x = {"John", 36}
x = {"name" : "John", "age" : 36}
x = ["name" : "John", "age" : 36]
x = dict(name="John", age=36)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a binary type in Python?
str
int
list
bytes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to set a variable x to a frozenset?
x = {"apple", "banana", "cherry"}
x = ("apple", "banana", "cherry")
x = frozenset(["apple", "banana", "cherry"])
x = ["apple", "banana", "cherry"]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Access
Quiz
•
10th Grade - University
11 questions
Google Slides Quiz
Quiz
•
12th Grade
10 questions
Les variables sous Python
Quiz
•
10th - 12th Grade
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
15 questions
QUIZ INTEGRASI PERKANTORAN - KELAS X
Quiz
•
10th Grade - University
10 questions
Review I-PM Ujikom Multimedia
Quiz
•
12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
