
Python Programming Quiz
Quiz
ā¢
Computers
ā¢
8th Grade
ā¢
Practice Problem
ā¢
Easy
HoangViet Phannguyen
Used 176+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What happens if a while loop's condition is never false?
It stops after 10 iterations
It throws an error
It runs infinitely
It runs once
2.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What does len(my_list) return for my_list = [1, 2, 3]?
2
3
1
4
3.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the error in this code?
4 should be in brackets [4]
my_list[3] should be my_list(3)
Index 3 is out of range
4
4.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What does range(1, 4) generate in a for loop?
4, 3, 2, 1
0, 1, 2, 3
1, 2, 3
1, 2, 3, 4
5.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the output of the code below in Python?
5.77
5.76543
5.76
5.765
6.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is the output of the code below in Python?
2
2.5
1
10
7.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What is wrong with this code?
The second condition will never execute
elif should be else if
num is not defined
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
35 questions
Chapter 9 Review: Word Processors
Quiz
ā¢
8th Grade
35 questions
Bab 3-Sistem Komputer -Grade 5
Quiz
ā¢
5th Grade - University
43 questions
HTML y Conceptos de programación.
Quiz
ā¢
KG - 12th Grade
40 questions
soal pts tik 8 semester 1
Quiz
ā¢
8th Grade
45 questions
Introduction to Sphero
Quiz
ā¢
6th - 8th Grade
40 questions
Kuiz Komputer Online
Quiz
ā¢
6th - 10th Grade
36 questions
ASK TINGKATAN 1 BAB 4 : KOD ARAHAN
Quiz
ā¢
8th Grade
35 questions
Microsoft Word
Quiz
ā¢
6th - 12th Grade
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
