
Python Quiz
Authored by Rafael Diolatzis
Computers
6th - 9th Grade
Used 62+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will the output of the following code be?
for i in ["A", "b", "3"]:
print(i)
Error
"A"
"b"
"3"
A, b, 3
A
b
3
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the code below?
x = 5
if x == 0:
print("x is 0")
elif x > 1:
print("x is greater than 1")
elif x > 3:
print("x is greater than 3")
x is 0
x is greater than 1
x is greater than 3
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
for a in range(3):
print(a)
1
2
3
0
1
2
1 2 3
Error
4.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Which of the following is a python module?
Tkinter
Panda
SuperTyper
TensorFlow
Kivy
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the value of b?
a = 0
b = a
a = 3
0
3
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output?
print(4**4)
4
16
356
256
Error
7.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Which of the following commands exists?
.upper()
.casefold()
.destroy()
.TextChar
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?