Which structure should you use if you want to do something with each of the elements of a list?
Module 09 - For Loops

Quiz
•
Computers
•
10th Grade
•
Hard
Casey Devet
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
for loop
while loop
if statement
else clause
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
This for loop is supposed to print each name in the list called "students", but there are some issues.
Which of the following does NOT need to be changed to make this code work properly?
The second line needs to be indented.
Use "in" instead of "from"
Add a colon (:) at the end of the first line
Change "name" to "students" on the second line
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
True or False:
In a for loop, the thing after the "in" must be a list.
True
False
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
True or False:
You can put if statements inside of for loops.
True
False
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A program has a list of turtle objects called "racers". Which of the following will move all of the turtles in the list forward by 10 pixels.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does this code do?
Counts the number of vowels in the string variable called word
Counts the number of consonants (non-vowels) in the string variable called word
Counts the total number of letters in the string variable called word
Counts the number of lowercase letters in the string variable called word
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which function allows us to loop through two lists at the same time?
for()
zip()
range()
list()
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
MIT App Inventor Basics

Quiz
•
9th - 12th Grade
14 questions
PCS Typing Questions

Quiz
•
9th - 12th Grade
13 questions
Programming Concepts Quiz

Quiz
•
6th Grade - University
15 questions
Y9 Term 2 Baseline

Quiz
•
10th Grade
15 questions
TY Python Quiz

Quiz
•
9th - 12th Grade
15 questions
Latihan UPS2

Quiz
•
5th - 12th Grade
14 questions
Computer Programming Quiz

Quiz
•
10th Grade
10 questions
Pseudocode - Iteration

Quiz
•
7th - 11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade