
Python Lists

Quiz
•
Instructional Technology
•
University
•
Medium
Kelvin Kipchumba
Used 3+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Machine Learning Beginner Set - 3

Quiz
•
University - Professi...
15 questions
Cloud migration prerequisite

Quiz
•
University - Professi...
10 questions
Quiz Feature Driven Develompment

Quiz
•
University
8 questions
Ubiquitous Technology

Quiz
•
University
15 questions
Lesson 2 Quiz - Introduction to MS Word

Quiz
•
University
10 questions
Cyber security 3

Quiz
•
University
10 questions
Revision Set 1

Quiz
•
University
9 questions
Tutorial

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade