Lists Py Reading

Passage
•
Computers
•
9th - 10th Grade
•
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()
Similar Resources on Wayground
8 questions
The Importance of Healthy Eating

Passage
•
9th Grade
6 questions
Nama Buah dalam Bahasa Inggris

Passage
•
KG
7 questions
Standard Sorting Algorithms Reading

Passage
•
9th - 10th Grade
6 questions
exploring Endemic Animal of Indonesia

Passage
•
9th Grade
6 questions
The Chimpanzee and His Friends

Passage
•
9th Grade
6 questions
The First Thanksgiving

Passage
•
9th Grade
8 questions
AI Stocks to Check Out

Passage
•
9th Grade
8 questions
A 2 - reading 2

Passage
•
8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade