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
10 questions
scratch quiz

Quiz
•
1st Grade - University
10 questions
Defensive Design/ Robust Coding

Quiz
•
9th Grade - University
10 questions
FGCT4023 Topic 6 - Interactivity

Quiz
•
University
13 questions
control statements

Quiz
•
University
10 questions
MS Excel - Day 01

Quiz
•
University
10 questions
Puzzle Quiz

Quiz
•
University
10 questions
Conditional and Iterative Statements

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

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University