PYTHON (FOR LOOP)
Quiz
•
Computers
•
1st - 10th Grade
•
Practice Problem
•
Medium
Shilpa Thakur
Used 112+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
ข้อมูลและการประมวลผลข้อมูล
Quiz
•
7th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
10 questions
Alapismeretek
Quiz
•
7th - 12th Grade
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
12 questions
Adventure game project
Quiz
•
7th - 8th Grade
14 questions
Grade 1 COMPUTER MOUSE UNIT TEST 4
Quiz
•
1st Grade
10 questions
Introduction to cloud Computing.
Quiz
•
1st - 3rd Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
