for loop

Quiz
•
Computers
•
7th Grade
•
Medium
Tshering Dema
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What does a for loop do in Python?
Stores data
Repeats a block of code for each item in a list
Stops a program
Takes input from the user
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct for loop in Python?
for x to y in list:
loop item in list:
for item in list:
repeat list:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the loop variable in this code?
fruits
for
fruit
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
cow goat sheep
a a a
goat cow sheep
sheep cow goat
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times does this loop run?
1
2
3
4
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blank:
Similar Resources on Wayground
11 questions
Python Ifs, Lists, and Loops

Quiz
•
7th - 8th Grade
10 questions
Code.org (1-8)

Quiz
•
5th - 8th Grade
9 questions
G(7) Quiz#4 - L3.4

Quiz
•
7th Grade
10 questions
Coding 300 Coding Basics

Quiz
•
7th - 8th Grade
10 questions
Goat Simulator

Quiz
•
4th Grade - Professio...
10 questions
Computer Hardware and Software

Quiz
•
6th - 8th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
11 questions
Coding Basics in Swift

Quiz
•
7th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade