What will be the output of the following code?
for i in range (3):
print(i)
Code Sprint '25
Quiz
•
Engineering
•
University
•
Medium
Arknight 007
Used 6+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for i in range (3):
print(i)
0 1 2
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for j in range(5):
print(j * 2)
0 2 4 6 8
0 1 2 3 4
1 3 5 7 9
2 4 6 8 10
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for k in range(2, 5):
print(k ** 2)
2 3 4
2 3 4
4 9 16
1 4 9
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for m in range(1, 4):
print(m + 1)
1 2 3
2 3 4
0 1 2
2 3 4 5
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for n in range(1, 6):
print(n * 3)
3 4 5 6 7
1 2 3 4 5
0 3 6 9 12
3 6 9 12 15
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for x in range(4):
print(x + 2)
2 3 4 5
0 1 2 3
1 2 3 4
2 4 5 6
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
for y in range(1, 4):
print(y ** 3)
1 4 9
1 8 27
1 2 3
1 3 5
18 questions
Mastering Python Fundamentals
Quiz
•
University
25 questions
PodiumRound
Quiz
•
University
19 questions
python
Quiz
•
University
25 questions
End Of 9 Weeks Study Guide (Spring)
Quiz
•
11th Grade - University
20 questions
DLD Unit 1 _ 2
Quiz
•
University
15 questions
FCS-Review
Quiz
•
University
15 questions
CC SBL
Quiz
•
University
23 questions
FUNDAMENTOS DE PYTHON 2DO PARCIAL
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade