
Python Quiz
Authored by Thanh Sơn Phạm
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of this code in Python 3?
a) <class 'int'>
b) <class 'float'>
c) <type 'int'>
d) <type 'float'>
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the result of the following code in Python 2?
a) <type 'int'>
b) <type 'float'>
c) Error
d) None
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will this code output?
a) 3
b) 3.3333...
c) 3.0
d) Error
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is NOT a valid assignment in Python?
a) x = 1, 2, 3
b) x, y, z = 1, 2, 3
c) x = (y = 2)
d) x = y = z = 10
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will the following code output in Python 3?
a) Success
b) Failure
c) Error
d) None
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will this code output in Python 2?
a) True
b) False
c) Error
d) None
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is a valid way to check for None in Python?
a) if x == None:
b) if x is None:
c) Both a and b
d) None of the above
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
11 questions
Introduction to Computer Programming
Quiz
•
University
10 questions
QUIZ 2 PLC
Quiz
•
10th Grade - University
15 questions
Mini Game- THỬ TÀI AI – SIÊU NHÂN CÔNG NGHỆ
Quiz
•
University
12 questions
CLC Lesson 7 Quiz
Quiz
•
University
10 questions
Ongkharak Library, SWU Services
Quiz
•
University
10 questions
LD siskom SE
Quiz
•
10th Grade - University
15 questions
BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1
Quiz
•
University
10 questions
Refresh Python
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University