What is output by the code below?
cntr = 0
for c in range(0, 10, 4):
cntr += 1
print(cntr) #out of loop
CS1 End-o-year Review
Quiz
•
Computers
•
10th Grade
•
Hard
Danielle Mills
Used 3+ times
FREE Resource
43 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
cntr = 0
for c in range(0, 10, 4):
cntr += 1
print(cntr) #out of loop
2
3
4
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
n = 2
total = 0
while(n < 9):
total=total + n #in loop
n += 1 #in loop
print(total) #out of loop
104
54
44
35
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
list = [33,14,37,11,27]
print(list[0])
27
11
33
There is no output due to a syntax error.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
list = [33,14,37,11,27]
print(list[len(list)-1])
27
11
33
14
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
list = [33,14,37,11,27]
print(list[len(list)])
a. 14
b. 11
c. 33
d. There is no output due to a runtime exception.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
list = [33,14,37,11,27,4,6,2,6]
print(len(list))
a. 10
b. 9
c. 11
d. 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below
nums = [0,0,0,0,0,0,0,0,0]
for i in range(len(nums)):
nums[i] = i * 2
print(nums[8]) #outside loop
a. 10
b. 12
c. 14
d. 16
44 questions
Multidimensional list and tuples 2025
Quiz
•
9th - 12th Grade
44 questions
python
Quiz
•
10th Grade
40 questions
Python Programming (non-OO) Final Review
Quiz
•
9th - 12th Grade
40 questions
Robotics Final Study Guide
Quiz
•
9th - 12th Grade
40 questions
AP CSP Code.org Unit 5 Assessment 1 Review
Quiz
•
9th - 12th Grade
48 questions
STARTER - 1D Array Test
Quiz
•
9th - 12th Grade
40 questions
Python Revision Years 8&9 IGCSE
Quiz
•
9th - 12th Grade
46 questions
PYTHON PROGRAMMING - FINAL EXAM REVIEW
Quiz
•
9th - 12th 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
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University