Python Loops

Quiz
•
Computers
•
9th - 11th Grade
•
Medium

Helen Dinsmore
Used 863+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
1,2,3,4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 QUESTION
45 sec • 1 pt
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 QUESTION
30 sec • 1 pt
what is the name of the variable used in the following code?
counter
for
#
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an acceptable variable name?
no-text
8text
no_text
no_text$
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
For and While Loops in Python

Quiz
•
9th - 12th Grade
12 questions
9.1.6 - Starter Quiz

Quiz
•
8th - 9th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
11 questions
VISUAL PROGRAMMING

Quiz
•
11th Grade
13 questions
KS4 Python While Loops and For Loops

Quiz
•
9th - 11th Grade
16 questions
Iteration Recap

Quiz
•
8th - 9th Grade
10 questions
Global and local variables

Quiz
•
10th - 12th Grade
10 questions
Python Review 2023-01-12

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade