Which of the following for loops would print the following numbers?
0
1
2
3
4
5
Unit 5 Review
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Julia McGreal
Used 26+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Which of the following for loops would print the following numbers?
0
1
2
3
4
5
for i in range(5): print(i)
for i in range(1, 5, 1): print(i)
for i in range(6): print(i)
for i in range(0, 5, 1): print(i)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
i = 10
while i > 6:
# Code
Output:
10
9
8
Continue
Break
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(3, 10, 3):
# code
Output:
3
Break
Continue
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range (3, 10, 3):
# code
Output:
3
9
Break
Continue
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(10):
# Code
Output:
0
1
2
break
continue
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What is the value of num when this loop completes?
2
8
12
20
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others?
for i in range(0, 5):
for i in range(5):
for i in range(0, 5, 1):
for i in range(5, 0, 1):
10 questions
Quiz 13 - For Loops
Quiz
•
11th Grade
10 questions
Python Nested Loops Quiz
Quiz
•
9th - 12th Grade
15 questions
Lesson 5 Looping Quiz
Quiz
•
10th - 12th Grade
16 questions
Loops
Quiz
•
5th - 12th Grade
16 questions
Python есептер 1
Quiz
•
9th - 12th Grade
10 questions
PYTHON (FOR LOOP)
Quiz
•
1st - 10th Grade
11 questions
Python Review
Quiz
•
11th Grade
15 questions
Python - тест
Quiz
•
1st - 12th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade