
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
15 questions
P3 IAS 2 Quiz
Quiz
•
University
10 questions
OOP-Q1
Quiz
•
University
12 questions
CLC Lesson 4&5 Quiz
Quiz
•
University
12 questions
Java_Quiz_Part_2
Quiz
•
University
15 questions
Emp. Tech. 12 - Intro to MS Excel Quiz
Quiz
•
12th Grade - University
10 questions
Python_Quiz_1
Quiz
•
University
16 questions
Java Basics Quiz for CH/PT Students
Quiz
•
University
15 questions
Introduction to Programming
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University