PYTHON (FOR LOOP)

Quiz
•
Computers
•
1st - 10th Grade
•
Medium
Shilpa Thakur
Used 111+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 20 pts
Choose the correct output of the following code.
for i in range(10,15):
print(i)
10
11
12
13
14
10
11
12
13
14
15
11
12
13
14
Error
2.
MULTIPLE CHOICE QUESTION
1 min • 20 pts
What is the output of the following:-
x = "123"
for i in x:
print("a")
x
1
a
1
2
3
x
1
2
3
a
a
a
3.
OPEN ENDED QUESTION
2 mins • 20 pts
Q3. Write a for loop so that every item in the list is printed.
lst=["koala", "cat", "fox", "panda", "chipmunk", "sloth", "penguin", "dolphin"]
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
1 min • 20 pts
Q4. What is the output of the following:-
print(list(range(10)))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[1,2,3,4,5,6,7,8,9,10]
[2,3,4,5,6,7,8,9,10,11]
[0,1,2,3,4,5,6,7,8,9,10]
5.
MULTIPLE CHOICE QUESTION
1 min • 20 pts
Choose the correct answer
for i in "python":
print(i, end=='?')
Error
p?
y?
t?
h?
o?
n?
p?y?t?h?o?n?
both b and c
6.
OPEN ENDED QUESTION
2 mins • 20 pts
Find the error and correct it
i=2
for x in (i):
x+=1
print(x)
Evaluate responses using AI:
OFF
7.
OPEN ENDED QUESTION
30 sec • 20 pts
What is for loop.
Evaluate responses using AI:
OFF
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Python Packing & Unpacking Review

Quiz
•
9th - 12th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
12 questions
Computer Systems - How the web works - Lesson 7

Quiz
•
8th Grade
15 questions
Python debug & calculations

Quiz
•
8th - 9th Grade
12 questions
Errors in Python

Quiz
•
9th - 12th Grade
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
11 questions
G(6) Quiz L3.2 - 3.3

Quiz
•
6th Grade
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade