
Exploring Python For Loops
Authored by Devan Miller
Instructional Technology
Professional Development
DOK Level 2: Skill/Concept covered
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a basic for loop in Python?
for i in range(10):
for (i = 0; i < 10; i++):
foreach i in range(10):
loop i in range(10):
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to loop through a list named `fruits` in Python?
for fruit in fruits:
for each fruit in fruits:
foreach fruit in fruits:
loop fruit in fruits:
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `range(5)` function return in a for loop?
A list of numbers from 1 to 5
A list of numbers from 0 to 5
A list of numbers from 0 to 4
A list of numbers from 1 to 4
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you iterate over each character in the string `word = "Python"`?
for x in word:
for each x in word:
foreach x in word:
loop x in word:
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
for i in range(3):
print(i)
0 1 2
1 2 3
0 1 2 3
1 2
Tags
DOK Level 2: Skill/Concept
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you have a list `numbers = [10, 20, 30]`, what will the following code print?
for num in numbers:
print(num + 5)
10 20 30
15 25 35
5 15 25
10 15 20
Tags
DOK Level 2: Skill/Concept
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code?
for i in range(2, 5):
print(i)
2 3 4
2 3 4 5
3 4 5
3 4
Tags
DOK Level 2: Skill/Concept
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
7 questions
Centrifugal Pump Preventative Maintenance
Quiz
•
Professional Development
10 questions
1.1 Introduction to Rolling Stock
Quiz
•
Professional Development
10 questions
Introdução à Computação
Quiz
•
Professional Development
15 questions
AGS 529/ABLE Knowledge Check November 2023
Quiz
•
Professional Development
10 questions
GSuite Quiz
Quiz
•
Professional Development
15 questions
cars
Quiz
•
KG - Professional Dev...
15 questions
BCS Logic and coding
Quiz
•
Professional Development
10 questions
Piawaian ISTE
Quiz
•
Professional Development
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
Discover more resources for Instructional Technology
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...