
Python - Type Casting
Interactive Video
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
aaisha Shafqat
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
SLIDE QUESTION
30 sec • Ungraded
2.
SLIDE QUESTION
30 sec • Ungraded
3.
SLIDE QUESTION
30 sec • Ungraded
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To display something on the screen, use this command:
print()
Print()
screen()
write()
display()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
x = 5
y = 6
print(x*y)
The code above displays the following:
11
x*y
Syntax Error
30
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
cakeAmount = input()
print ("We have", cakeAmount, " cakes")
The above code is run. You type:
six
Select the correct output.
We have 6 cakes
We have six cakes
Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Operators used in python:
divide, multiply, add, subtract
/, *, +, -
div, mul, +, -
\, x, +, -
~, *, +, -
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?