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
8 questions
Robot Teachers
Passage
•
9th - 12th Grade
7 questions
The Mystery of the Missing Backpack (Adverb of Manner)
Passage
•
8th Grade
11 questions
Roman Mythology Quiz
Passage
•
10th Grade
6 questions
The Four Ps of Marketing: A Comprehensive Guide
Passage
•
9th Grade
8 questions
LE THE
Passage
•
10th Grade
8 questions
Report Text
Passage
•
9th Grade
6 questions
10/3 Daily Do Now
Passage
•
9th - 12th Grade
11 questions
Cie. da Computação - O que você sabe sobre informática?
Passage
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade