FOR Loop Python
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Andrew Kale
Used 1+ times
FREE Resource
Enhance your content in a minute
13 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(5):
for (i = 0; i < 5; i++)
foreach i in range(5):
loop i in range(5):
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
1, 2, 3
0, 1, 2
0, 1, 2, 3
3, 2, 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
2, 3, 4, 5
2, 3, 4
3, 4, 5
1, 2, 3, 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
Prints each character on a new line
Repeats the whole string
Prints ASCII values
Throws an error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
5, 4, 3, 2
5, 4, 3, 2, 1
1, 2, 3, 4, 5
5, 4, 3, 2, 1, 0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of break?
Exit loop immediately
Skip iteration
Restart loop
Pause execution
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of continue?
Exit loop immediately
Skip current iteration
Restart loop
Pause temporarily
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
Already have an account?
Similar Resources on Wayground
10 questions
Función CONTAR
Quiz
•
KG - Professional Dev...
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
13 questions
Lekcja14 7-8
Quiz
•
7th - 8th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
kiểm tra 15 phút tin 7
Quiz
•
6th - 9th Grade
13 questions
Powtórka z arkusza
Quiz
•
1st - 6th Grade
10 questions
DSI.01
Quiz
•
7th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
