Chapter 7-8 Review

Assessment
•
Michael Rucereto
•
Instructional Technology, Computers
•
11th Grade
•
8 plays
•
Medium
Student preview

20 questions
Show answers
1.
Multiple Choice
What will run when the following code is executed?
Count = 0
while count < 10:
print count
count += 1
0,1,2,3,4,5,6,7,8,9,10
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,10,11
2.
Multiple Choice
What will run when the following code is executed?
def my_function(x):
for i in range(0, len(x)):
x[i] = x[i]
return x
print my_function(range(5))
0,1,2,3,4,5
1,2,3,4,5
0,1,2,3,4
None of these choices
3.
Multiple Choice
What will run when the following code is executed?
N = [3, 5, 7]
def double_list(x):
for i in range(0, len(x)):
x[i] = x[i] *2
3,10,7
6,10,14
3,5,7
[6,10,14]
4.
Multiple Choice
What will run when the following code is executed?
N = [3, 5, 7]
def print_list(x):
for i in range(0, len(x)):
print x[i]
print_list(n)
3,5,7
[3,5,7]
{3,5,7}
None of the above
5.
Multiple Choice
What will run when the following code is executed?
def list_function(x):
x[2] = x[2] +12
return x
n = [26, 29, 32]
print x[2]
32
29
44
None of these choices
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
java while loop

•
9th - 12th Grade
Chapter 10 Review

•
9th - 12th Grade
Python Programing Module 7 review

•
11th Grade
Python Review

•
9th - 12th Grade
If-Else Loops: Python Programming

•
11th Grade
Test 4 Edhesive Review

•
9th - 12th Grade
Loops Quiz

•
9th - 12th Grade
Python Programming

•
11th Grade - University