
Python Quiz on 2D Lists
Authored by sonam choki
Computers
8th Grade
Used 1+ 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
Which of the following best describes a 2D list in Python?
A list of lists, where each element is another list
A list with two elements
A list that contains only numbers
A list with two dimensions, width and height
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access an element in a 2D list at row 2 and column 3?
List[2,3]
list[1][2]
list[3][2]
list[2][3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does None represent in a 2D list in Python?
A zero value
A missing value
A special character
An empty list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to assign the same value to multiple variables in a single statement?
x, y, z = "10"
x, y, z = [10, 10, 10]
x, y, z = 10
x = 10; y = 10; z = 10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you iterate over a single row of a 2D list in Python?
Using a for loop with range(len(list))
Using a while loop with a counter variable
Using a for loop with range(len(list[0]))
Using a for loop with range(len(list[1])
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where is the pigeon located?
row 2 column 5
row 3 column 2
row 1 column 3
row 0 column 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where is the snake located?
row 0 column 0
row 3 column 2
row 1 column 3
row 2 column 5
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?