
Python: Print and Data Types
Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Ilan Chaim
Used 3+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does this print:
x = int(1)
y = int(2.8)
z = int("3")
print(x, end=" ")
print(y, end = " ")
print(z, end = " ")
1
2.8
error
1 2.8 error
1
2
3
1 2 3
1 2.8 3
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be printed?
x = float(1)
y = float(2.8)
z = float("3")
w = float("4.2")
print(x, end = " ")
print(y, end = " ")
print(z, end = " ")
print(w)
x y z w
1
2
3
4
1.0 2.8 3.0 4.2
1 2 3 4
error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will this print?
x = 10
x = str("s1")
print(x)
error
10
x
s1
10s1
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will this print?
day = "Thursday"
print(type(day))
<class 'complex'>
<class 'float'>
<class day>
<class 'int'>
<class 'str'>
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will this print?
day = 32.5
print(type(day))
<class 'complex'>
<class 'float'>
<class day>
<class 'int'>
<class 'str'>
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
grade1 = input("What did you get in p1? ")
grade2 = input("What did you get in p2? ")
sum = grade1 + grade2
If you enter 70 for grade1 and 80 for grade2, what will sum print to?
grade1grade2
error
8070
150
7080
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following data types can consist of numbers, alphabets and symbols?
String
Integer
Float
Boolean
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
Already have an account?
Similar Resources on Wayground
15 questions
python basics
Quiz
•
11th Grade - University
13 questions
Тесттер жинағы 2023
Quiz
•
9th - 12th Grade
20 questions
12 CA 1-10
Quiz
•
12th Grade
20 questions
แบบทดสอบก่อนเรียน เรื่องการแก้ปัญหาด้วย scratch
Quiz
•
8th Grade - University
15 questions
Tekper Bab3
Quiz
•
10th Grade
15 questions
Operator dan Kontrol Struktur PHP
Quiz
•
2nd Grade - University
16 questions
C-Programming Basics
Quiz
•
12th Grade
15 questions
ôn tập chỉnh ảnh và làm phim
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
