Python For

Quiz
•
Computers
•
University
•
Medium
Tasanawan Soonklang
Used 51+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 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
45 sec • 1 pt
Which variable that use to access the current element of a "for" loop?
fruit
x
i
fruits
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many lines that this program prints?
1
2
3
0
4.
MULTIPLE CHOICE QUESTION
45 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
45 sec • 1 pt
how many lines that this program prints?
2
10
3
4
6.
MULTIPLE CHOICE QUESTION
45 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
14 questions
Motherboard

Quiz
•
University
15 questions
Bcom remedial question _ 15

Quiz
•
University
10 questions
defensive design

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
10 questions
for loop quiz

Quiz
•
University
12 questions
Exploring Python Turtle Graphics

Quiz
•
7th Grade - University
11 questions
Soal ulangan kelas X

Quiz
•
10th Grade - University
15 questions
Spreadsheet

Quiz
•
4th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University