
Understanding Python Data Types
Quiz
•
Information Technology (IT)
•
8th Grade
•
Easy
Ammar Hanifi
Used 2+ times
FREE Resource
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
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
Ch2變數與運算式-綜合演練選擇題
Quiz
•
6th - 8th Grade
15 questions
scratch
Quiz
•
6th - 8th Grade
10 questions
Викторина по языку Python
Quiz
•
6th - 8th Grade
15 questions
Quiz Informatika Genap KLs 7
Quiz
•
7th Grade - University
12 questions
Ulangkaji ASK
Quiz
•
6th - 8th Grade
15 questions
5-sinf. Kompyuter va Internet Asoslari
Quiz
•
5th Grade - University
10 questions
Ultrasonic Sensor - L1
Quiz
•
6th Grade - University
15 questions
6-sinfl. Ofis dasturlari va Scratch
Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
20 questions
Figurative Language Review
Quiz
•
8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
22 questions
Newton's Laws of Motion
Lesson
•
8th Grade
24 questions
3.1 Parallel lines cut by a transversal
Quiz
•
8th Grade
20 questions
Slope from a Graph
Quiz
•
8th Grade
