Python Loops

Assessment
•

Helen Dinsmore
•
Computers
•
9th - 11th Grade
•
847 plays
•
Medium
Student preview

12 questions
Show answers
1.
Multiple Choice
Look at the following code, what will it generate
1,2,3,4,5,6,7,8,9,10,11,12
0,1,2,3,4,5,6,7,8,9,10,11,12
1,2,3,4,5,6,7,8,9,10,11,12,13
0,1,2,3,4,5,6,7,8,9,10,11,12,13
2.
Multiple Choice
What does the following program display?
1,2,3,4
1,2,3,4,5
counter,counter,counter,counter,counter
0,1,2,3,4,5
3.
Multiple Choice
1,2,3,4
4.
Multiple Choice
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
5.
Multiple Select
if you wished a loop to repeat 3 types whwt should you use?
For counter in range(0,5):
For counter in range(1.3):
For counter in range(0.3):
6.
Multiple Choice
what is the name of the variable used in the following code?
counter
for
#
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
Python - Loops & Lists

•
7th - 11th Grade
Understanding Loops in Python

•
10th Grade
FOR Loops Python

•
9th - 12th Grade
Iteration - for loop

•
9th Grade
Programming with For Loops

•
7th - 9th Grade
Loops in Python !

•
11th Grade
for loop 2

•
6th - 12th Grade
Loops / Sets - Python

•
11th - 12th Grade