Chapter 7-8 Review

Quiz
•
Instructional Technology, Computers
•
11th Grade
•
Medium
Michael Rucereto
Used 8+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will run when the following code is executed?
N = [10, 20, 35]
n.append(42)
print n
10,20,35,42
{10,20,35,42}
*10,20,35,42*
[10,20,35,42]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will run when the following code is executed?
N = [22, 13, 5]
N[0] = n[0] * 3
print N[0]
22
66
15
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Programming Languages

Quiz
•
9th - 12th Grade
25 questions
CSP Python Review

Quiz
•
9th - 12th Grade
20 questions
AP CA A Unit 4 Review

Quiz
•
11th - 12th Grade
21 questions
Programming - Python (year 12)

Quiz
•
9th - 12th Grade
19 questions
class 11 - basic concepts in python 1

Quiz
•
11th Grade
17 questions
Flow of Control in C++ ( Conditional statements)

Quiz
•
9th Grade - University
20 questions
OCR GCSE CS MCQs 2.3 Defensive Design

Quiz
•
10th - 11th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University