
Understanding Python Data Types
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Easy
Ammar Hanifi
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is used to represent whole numbers in Python?
string
int
float
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to an integer in Python?
Apply float('string') for conversion to integer.
Use eval('string') to get an integer from a string.
Use str('string') to convert a string to an integer.
Use int('string') to convert a string to an integer.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(type(3.14))?
<Class , Float>
(Float)
3.14
Pi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid string in Python?
hello world
'12345
'world"
"hello"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to take user input in Python?
read()
input()
get_input()
scan()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you convert an integer to a float in Python?
Use float(integer) to convert an integer to a float.
Use int(float) to convert a float to an integer.
Apply str(integer) to change an integer to a string.
Multiply the integer by 1.0 to get a float.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(str(100) + ' is a number')?
100 is a number
100 is not a number
100 is a string
100 is an integer
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
8 questions
Sketchup Textures and Arc
Quiz
•
6th - 8th Grade
10 questions
Understanding Data and Encoding
Quiz
•
6th Grade - University
15 questions
Grade 6 - Living with AI
Quiz
•
6th Grade - University
10 questions
Presentation Software Quiz Class 8
Quiz
•
8th Grade
15 questions
HTML_ONTAP_1
Quiz
•
8th Grade
15 questions
Big Data: Understanding the Digital Universe
Quiz
•
8th Grade
9 questions
Kiến thức về hàm print() trong Python
Quiz
•
2nd Grade - University
9 questions
Condition Programming Quiz
Quiz
•
1st 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
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
