
Module 08 - Lists
Authored by Casey Devet
Computers
10th Grade

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
2 mins • 1 pt
Which of the following correctly creates a list?
names = "John", "Paul", "George", "Ringo"
names = {"John", "Paul", "George", "Ringo"}
names = ["John", "Paul", "George", "Ringo"]
names = ["John" "Paul" "George" "Ringo"]
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
True or False:
A list can only store numbers or strings.
True
False
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
True or False:
The first element in a list has index 1.
True
False
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which command will print "Davey"?
print(students)
print(students[3])
print(students[4])
print(students[5])
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the index of the last element of this list?
0
4
5
6
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which command will replace "Betty" with "Bobby" in the list?
students["Betty"] = "Bobby"
students[3] = "Betty"
students[2] = "Bobby"
students[1] = "Bobby"
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be printed if name has the value "Joe"?
ABC
XYZ
ABC
XYZ
Nothing
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?