
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"]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Data Dictionary Quiz
Quiz
•
12th Grade
10 questions
Kiến thức về xâu kí tự trong Python
Quiz
•
10th Grade - University
10 questions
PBO XII RPL
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Administrasi Sistem Jaringan
Quiz
•
12th Grade
10 questions
python-BTxâu
Quiz
•
9th - 12th Grade
10 questions
Working around Adobe Photoshop
Quiz
•
12th Grade
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
