Lists Py Reading
Passage
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Andrew Ward
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a list in Python?
A collection of items that are ordered and changeable
A collection of items that are unordered and unchangeable
A single item of a specific data type
A function to perform mathematical operations
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
Using square brackets []
Using curly braces {}
Using parentheses ()
Using angle brackets <>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? fruits = ["apple", "banana", "cherry"] print(fruits[1])
banana
apple
cherry
orange
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you add an item to the end of a list in Python?
Using the append() method
Using the add() method
Using the insert() method
Using the extend() method
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code? fruits = ["apple", "banana", "cherry"] fruits[1] = "orange" print(fruits)
['apple', 'orange', 'cherry']
['apple', 'banana', 'cherry']
['orange', 'banana', 'cherry']
['apple', 'cherry', 'orange']
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to remove the first occurrence of an item from a list in Python?
remove()
delete()
pop()
discard()
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?
Similar Resources on Wayground
5 questions
Primary Source: Johann Martin Boltzius
Passage
•
8th Grade
6 questions
Aplikasi Pengolah Presentasi
Passage
•
10th Grade
6 questions
Comprehension Passage
Passage
•
10th Grade
8 questions
WK9 Year 9 History Homework
Passage
•
9th - 10th Grade
6 questions
Jersey Fresh Program Overview
Passage
•
8th Grade
6 questions
La Qualité des Produits Français
Passage
•
11th Grade
8 questions
2.3 Health Informatics Services
Passage
•
9th - 12th Grade
11 questions
Family Comprehensive
Passage
•
KG
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade