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
40 questions
10th Grade 10 - IT Programming - 2nd Cycle Exam
Quiz
•
10th Grade - University
41 questions
Midterm prep 7th
Quiz
•
7th Grade - University
40 questions
Semester Final 2025
Quiz
•
10th Grade - University
44 questions
Python Test 2
Quiz
•
7th - 12th Grade
40 questions
ASAS SAINS KOMPUTER T2 [ULANGKAJI]
Quiz
•
1st Grade - University
38 questions
Python Fundamentals Concept Checkup
Quiz
•
9th Grade - University
40 questions
Scratch Graduation
Quiz
•
9th - 12th Grade
40 questions
Python - Lists, Dictionaries and Loops
Quiz
•
9th - 12th Grade
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
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade