Choose the correct output of the following code.
for i in range(10,15):
print(i)
PYTHON (FOR LOOP)
Quiz
•
Computers
•
1st - 10th Grade
•
Medium
Shilpa Thakur
Used 109+ 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
10 questions
Intro to Python
Quiz
•
8th Grade
10 questions
Programming in Java
Quiz
•
8th Grade
11 questions
Python IF ELSE
Quiz
•
10th Grade
10 questions
Exploring Python: Input and Output Essentials
Quiz
•
9th Grade - University
9 questions
Variables - 1
Quiz
•
7th - 8th Grade
14 questions
GCSE Computing - Subprograms
Quiz
•
9th - 10th Grade
10 questions
2.1.2 Flowcharts and algorithms
Quiz
•
10th Grade
14 questions
Python Basics
Quiz
•
7th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade