What is the syntax for a "for" loop in Python?
Python For

Quiz
•
Computers
•
University
•
Medium
Tasanawan Soonklang
Used 30+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(5):
for i = 1 to 5:
for i in 0..4:
for (i=0; i<5; i++):
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable that use to access the current element of a "for" loop?
fruit
x
i
fruits
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many lines that this program prints?
1
2
3
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
3
4
5
6
7
3
4
5
6
1
2
3
4
5
6
7
1
3
5
7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
how many lines that this program prints?
2
10
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
2
6
9
2
5
8
3
6
9
3
5
7
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which range function give the same list of
range(0, 5, 1)
range(0, 5)
range(5)
range(5, 1)
range(1, 5)
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Quiz 4 Week 6 Repetition Structures (For)

Quiz
•
University
15 questions
Quiz Algoritma Looping

Quiz
•
University
15 questions
C programming

Quiz
•
University
10 questions
reFRESHIEr ICS2602 Quiz

Quiz
•
University
10 questions
Third Year Placement Training Revision Test

Quiz
•
University
15 questions
Control Statements - Java

Quiz
•
University
10 questions
Python with DataScience

Quiz
•
7th Grade - University
5 questions
Python Day 6

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade