
Unit 9 Test Review
Authored by Julia McGreal
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program print?
my_grid = [[2, 5, 7, 10], [-3, "hello", 9, "hi"], ["hello", "hi", "hello", "hi"], [True, False, True, False]] print(my_grid[0])
[5, 7, 10, -3, ‘hello’, 9, ‘hi’]
[2, 5]
[[2, 5, 7, 10], [-3, ‘hello’, 9, ‘hi’]]
[2, 5, 7, 10]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program print?
my_grid = [[2, 5, 7, 10], [-3, "hello", 9, "hi"], ["hello", "hi", "hello", "hi"], [True, False, True, False]] print(my_grid[:2])
[5, 7, 10, -3, ‘hello’, 9, ‘hi’]
[2, 5]
[[2, 5, 7, 10], [-3, ‘hello’, 9, ‘hi’]]
[2, 5, 7, 10]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this program print?
numbers = [x + x for x in range(4)] print(numbers)
[0, 1, 2, 3, 4]
[0, 1, 2, 3]
[2, 4, 6, 8]
[0, 2, 4, 6]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this program print?
numbers = [x % 2 == 0 for x in range(0, 6)] print(numbers)
[True, False, True, False, True, False]
[0, 1, 0, 1, 0, 1, 0]
[0, 1, 0, 1, 0, 1]
[0, 1, 2, 3, 4, 5]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct example of packing?
my_list = [1, 2, 3]
x, y, z = my_list
my_list = [1, 2, 3]
x = y = z = my_list
x = 1
y = 2
z = 3
my_list = [x, y, z]
x = 1
y = 2
z = 3
my_list = x = y = z
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct example of unpacking?
my_list = [1, 2, 3]
x, y, z = my_list
my_list = [1, 2, 3]
x = y = z = my_list
x = 1
y = 2
z = 3
my_list = [x, y, z]
x = 1
y = 2
z = 3
my_list = x = y = z
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have the following dictionary, which stores the names and ages of people:
my_dictionary = {
"Bo": 32,
"Fiona": 28,
"Carlos": 45
}
Which line correctly prints Bo’s age?
print(my_dictionary[0])
print(my_dictionary[0][1])
print(my_dictionary["Bo"])
print(my_dictionary["Bo"][1])
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?
Similar Resources on Wayground
12 questions
Tin học 2
Quiz
•
11th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
10 questions
Quiz Excel 3
Quiz
•
10th Grade
10 questions
Операторы и функции языка Pascal
Quiz
•
1st - 10th Grade
15 questions
Mengenal Internet dan Jaringan Local
Quiz
•
12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade