What does the type() function do in Python?
Quiz#3

Quiz
•
Computers
•
8th Grade
•
Medium
Eman Shatnawe
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Converts a variable into a different data type
Returns the data type of an object
Checks if a variable is an integer
Checks if a string is empty
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will type(5) return?
str
int
float
bool
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will type(3.14) return?
int
float
double
decimal
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does range(3) produce?
[1, 2, 3]
[0, 1, 2]
[3, 4, 5]
[2, 3, 4]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
1 2 3 4 5
1 2 3 4
0 1 2 3 4
1 2 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will produce the numbers 10, 8, 6, 4?
range(10, 3, -2)
range(10, 4, -2)
range(10, 4, -1)
range(10, 4)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a relational operator?
<
<=
!=
=
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Python strings

Quiz
•
8th - 9th Grade
11 questions
Advanced Spreadsheet Functions Review

Quiz
•
8th Grade
12 questions
Grade-8 Ch-3 Log On to MS Access 2010

Quiz
•
8th Grade
10 questions
App Creators Lesson 2.1-2.4

Quiz
•
8th Grade
12 questions
Exel Formulas

Quiz
•
6th - 8th Grade
11 questions
Quiz: Python Débutant Niveau 1

Quiz
•
6th - 8th Grade
10 questions
Data validation and verification

Quiz
•
7th - 11th Grade
10 questions
Цикл for

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review

Quiz
•
8th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade