Unit 9
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Julia McGreal
Used 10+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the following list,
my_list = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11] ]
Which line of code would print the number ‘5’ to the screen?
print(my_list[1])
print(my_list[1:2])
print(my_list[1][2])
print(my_list[2][3])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of data structure is user_data in the following declaration?
user_data = {"name": "TJ", "age":24, "user_name":"artLover123"}
Tuple
List
Dictionary
2D List
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this program?
12
45
1
3
7
2
5
8
3
12
3
5
45
7
8
1
2
3
12
3
5
3
2
1
8
7
45
5
3
12
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following code snippets will create this 2D list?
board = [1, 2, 3] + [4, 5, 6] + [7, 8, 9]
board = [1, 2, 3]
board.append([4, 5, 6])
board.append([7, 8, 9])
board = [1, 2, 3, 4, 5, 6, 7, 8, 9]
board = [] board.append([1, 2, 3]) board.append([4, 5, 6]) board.append([7, 8, 9])
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following list comprehensions will create the same list as the for loop below?
my_list = [i for i in range(6)]
my_list = [i*2 for i in range(6)]
my_list = [i for i*2 in range(6)]
This cannot be done using a list comprehension statement.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does “packing” refer to in Python?
Creating a list
Initializing variables using values from a list
Storing multiple variables’ values by putting them in a collection, like a list or tuple
Cramming as many commands as possible onto a single line
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does “unpacking” refer to in Python?
Creating a list
Initializing multiple variables at a time using a collection of values
Storing multiple variables’ values by putting them in a collection, like a list or tuple
Cramming as many commands as possible onto a single line
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
7 questions
Python-list,tuple,Dictionary
Quiz
•
11th - 12th Grade
10 questions
Тест зі списків у Python
Quiz
•
10th Grade
15 questions
eval_h1
Quiz
•
11th - 12th Grade
13 questions
Networking Specs
Quiz
•
9th - 10th Grade
10 questions
Python Revision Tour
Quiz
•
12th Grade
15 questions
Pengenalan Kabel UTP
Quiz
•
10th Grade
11 questions
Tes Sumatif Pengkabelan
Quiz
•
11th Grade
14 questions
LocoRobo LEDs
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
15 questions
MLA Formatting
Quiz
•
9th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz
Quiz
•
9th Grade