
Understanding Python Lists

Quiz
•
Instructional Technology
•
10th Grade
•
Hard
RAKSMEY EN
Used 3+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a list in Python?
A list in Python is a type of function that returns values.
A list in Python is a mutable, ordered collection of items defined by square brackets.
A list in Python is an immutable, unordered collection of items.
A list in Python is a collection of items defined by curly braces.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create a list?
my_list = [1, 2, 3]
my_list = {1, 2, 3}
my_list = '1, 2, 3'
my_list = (1, 2, 3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method would you use to add an item to the end of a list?
Use the 'add()' method.
Use the 'insert()' method.
Use the 'extend()' method.
Use the 'append()' method.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named 'my_list'?
my_list[0]
my_list.get(0)
my_list.first()
my_list(1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of List = [1, 2, 3]; List.insert(1, 5); print(List)?
A) [1, 5, 2, 3]
B) [1, 2, 5, 3]
C) [5, 1, 2, 3]
D) [1, 2, 3, 5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method removes the first occurrence of a value from a list?
remove()
delete()
pop()
discard()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression len(my_list) if my_list = [1, 2, 3, 4, 5]?
4
6
10
5
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Functions and Method

Quiz
•
10th - 12th Grade
21 questions
Drone Concepts and Vocab Assessment Practice

Quiz
•
10th Grade
21 questions
Crime Scene to Court Room

Quiz
•
9th Grade - University
13 questions
Ethics in Business Vocabulary

Quiz
•
10th Grade
14 questions
WEB DESIGN

Quiz
•
10th Grade
20 questions
CLI and GUI

Quiz
•
7th - 11th Grade
12 questions
4ESO. TECNOLOGIA. UNIT 2. TEST. SUSTAINABLE TECNOLOGY

Quiz
•
10th Grade
20 questions
String Functions Quiz

Quiz
•
10th Grade
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
Discover more resources for Instructional Technology
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University