
CS1 End-o-year Review
Authored by Danielle Mills
Computers
10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?