What will the output of the following code be?
for i in ["A", "b", "3"]:
print(i)
Python Quiz
Quiz
•
Computers
•
6th - 9th Grade
•
Hard
Rafael Diolatzis
Used 58+ times
FREE Resource
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
18 questions
Foundations of Programming
Quiz
•
9th - 10th Grade
20 questions
Intro to Python
Quiz
•
6th - 8th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
Python 1
Quiz
•
7th - 9th Grade
19 questions
Programming Techniques Survey
Quiz
•
8th - 12th Grade
20 questions
Python turtle year 8 assessment
Quiz
•
7th - 9th Grade
20 questions
Year 8 Python -input-output-selection
Quiz
•
8th - 9th Grade
20 questions
Basic Python Key Terms
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade