
Python - Casting
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
J Joel Thomas
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Converting one datatype to the other in Python is known as
Conversion
translation
transformation
casting
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many constructs does Python support for casting?
4
3
2
none
3.
MATCH QUESTION
1 min • 1 pt
Match the following
float()
converts int, string to floats
not supported in Python
decimal()
converts floats, string literals to int
int()
str()
converts to string literals
not supported in Python
text()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output of the following?
text("hello")
text() is not defined in Python
will be 'hello'
will be "hello"
will be hello
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is int in Python?
All whole numbers both positive and negative excluding 0
All whole numbers both positive and negative including 0
All positive whole numbers including 0
All negative whole numbers including 0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is 0 an int or float or str
All the above
float
int
str
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How can you convert 3.8 into a str literal?
By adding speech marks around 3.8
By using str(3.8)
By using text(3.8)
3.8 is a number and cannot be converted to a str literal
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
15 questions
Year 12 Programming
Quiz
•
11th - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
BÀI KIỂM TRA 15P HK2 TIN HỌC 11
Quiz
•
11th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Java Fundamentals
Quiz
•
12th Grade
13 questions
Y10 Spring Programming Audit
Quiz
•
8th - 10th Grade
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
