
Python Quiz

Quiz
•
Information Technology (IT)
•
University
•
Hard
Thanh Sơn Phạm
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
PROG2013_Quiz_Unit1a

Quiz
•
University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
11 questions
prgramming

Quiz
•
6th Grade - University
10 questions
Java Quiz (Basics)

Quiz
•
University
10 questions
Aula 4 - IC

Quiz
•
University
15 questions
Bài 25

Quiz
•
10th Grade - University
10 questions
Quiz 4

Quiz
•
University
10 questions
Quiz Meet 1 Mini SC Programing

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University