Module 09 - For Loops
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Casey Devet
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which structure should you use if you want to do something with each of the elements of a list?
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()
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
10 questions
J808 LO1.1 Advantages of following a project life cycle
Quiz
•
10th Grade
10 questions
Arduino
Quiz
•
7th - 12th Grade
10 questions
Revision 1
Quiz
•
1st - 10th Grade
12 questions
10 Клас Python tests
Quiz
•
10th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
