Python For

Quiz
•
Computers
•
University
•
Medium
Tasanawan Soonklang
Used 32+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for a "for" loop in Python?
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 Wayground
15 questions
Control Statements - Java

Quiz
•
University
10 questions
Python with DataScience

Quiz
•
7th Grade - University
14 questions
LA5.C5: Branching and Subroutines

Quiz
•
9th Grade - University
10 questions
C - Pointers

Quiz
•
University
10 questions
Conditional and Iterative Statements

Quiz
•
University
10 questions
Java Quiz 2 based on loop and if else

Quiz
•
University
15 questions
Python-loops, branches, functions

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade