Python Quiz (Loops)
Quiz
•
Computers
•
KG - 6th Grade
•
Practice Problem
•
Medium
Jerry Xiao
Used 43+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
True or False: Reducing the duplication of code is one of the advantages of using a loop structure.
True
False
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
True or False: The output of the following code is “cat”
pets = ["cat", "dog"]
print(pets[0][0])
True
False
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
True or False: The output of these two loops is the same
for num in range(4):ㅤㅤ
print(num)
for num in range(1, 5):ㅤㅤ
print(num)
True
False
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What’s the output of the following code
for num in range(2, 9, 2): ㅤ
print(num)ㅤ
2 4 6 8
2 5 8
1 3 5 7 9
2 3 4 5 6 7 8 9
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
When will the following loop terminate?
while keep_on_going != 999:
When keep_on_going is greater than 999
When keep_on_going is not equal to 999
When keep_on_going is equal to 999
When keep_on_going is less than 999
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
10 questions
Grade 1 UT2 Revision (Types of Computers & Paint)
Quiz
•
1st Grade
10 questions
C Variables and Constants
Quiz
•
7th Grade
10 questions
Aeromodelling
Quiz
•
5th - 6th Grade
10 questions
Unit #8 | Worksheet #2
Quiz
•
6th Grade
10 questions
Python List Quiz
Quiz
•
1st Grade
10 questions
Working with Text : Summary
Quiz
•
6th Grade
10 questions
E-Waste
Quiz
•
3rd Grade
10 questions
PC1.8 Evaluate computer program
Quiz
•
9th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
