
kiểm tra 15 phút k8-for loop
Quiz
•
others
•
9th Grade
•
Medium
Đỗ (TDS-THT)
Used 1+ times
FREE Resource
Enhance your content
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a for loop in Python?
To declare a variable
To execute a block of code multiple times\
To store multiple values in a single entity\
To perform a specific arithmetic operation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to implement a for loop in Python?
loop
ilterate
for
for/loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a for loop, what does the range() function do?
It sets the upper limit of the loop
It creates a list of numbers
It specifies the increment value
It determines the number of iterations
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the syntax for a for loop in Python structured?
for (initialization; condition; update)\
for {variable} in [sequence]:
for [sequence] in {variable}:
for {variable} in range():
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code snippet output?
for i in range(3):
print(i)
0 1 2
1 2 3
3 3 3
0 1 2 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
for letter in "Python": print(letter)
P y t h o n
b. Python
['P', 'y', 't', 'h', 'o', 'n']
P h o n
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you iterate through a list using a for loop in Python?
for i in list:
for i in list():
for i in range(list):
for i in len(list):
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Birth/Newborn Review
Quiz
•
9th - 12th Grade
20 questions
Force and Momentum Review
Quiz
•
9th - 12th Grade
20 questions
Fossils Review
Quiz
•
3rd Grade - University
20 questions
Western River Civilizations Unit Test
Quiz
•
9th Grade
20 questions
Quiz: Water Pollution
Quiz
•
9th - 12th Grade
20 questions
Ir de compras Quiz practice
Quiz
•
9th - 12th Grade
20 questions
American Revolution Quiz
Quiz
•
6th Grade - University
20 questions
Post- words test
Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for others
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
13 questions
Halloween Trivia
Quiz
•
9th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
9th Grade
20 questions
Cell Transport
Quiz
•
9th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
