
Python Lists
Authored by Kelvin Kipchumba
Instructional Technology
University
Used 3+ 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 is a list?
A list is an unordered, unchangeable collection of items and do not alow duplicate values
A list is an unordered, changeable collection of items that can hold duplicate values
A list is an ordered, changeable collection of items that can hold duplicate values
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you create a list in Python?
list = (1, 2, 3)
list = {1, 2, 3}
list = [1, 2, 3]
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which method adds an item to the end of a list?
add()
append()
insert()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does list.insert(2, 'x') do?
Adds 'x' at index 2
Adds 'x' at the end
Replaces item at index 2 with 'x'
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will list.pop() do?
Remove the first item
Remove the last item
Remove a random item
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of len([1, 2, 3])
2
3
1
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method removes the first matching value from a list?
remove()
pop()
delete()
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?