Python Loops Post Test
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Jakobi Gorham
Used 60+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Choose the correct output of the following code.
for i in range(10,15):
print(i)
10
11
12
13
14
10
11
12
13
14
15
11
12
13
14
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What is the output of the following:-
x = "123"
for i in x:
print("a")
x
1
a
1
2
3
x
1
2
3
a
a
a
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The program above
prints all the odd numbers between 1 and 20
prints all even numbers between 1 and 20
print all the odd numbers between 1 and 21
prints all the even numbers between 1 and 21
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A while loop equivalent of the for loop above is
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
1,2,3,4
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
When do you know when you come to the end of the loop?
Its states End loop
The command End is given
The indentation stops
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What symbol do you use to make a comment in Python?
Create a free account and access millions of resources
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
Visual Basic 2010
Quiz
•
8th Grade - University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
10 questions
UH Bab 3 XII 3
Quiz
•
12th Grade
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
12 questions
Clase de Computación: Excel
Quiz
•
11th Grade
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
10 questions
emtech
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
