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
6 questions
hist

Passage
•
9th Grade
6 questions
The First Thanksgiving

Passage
•
9th Grade
6 questions
Preamble Quiz

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

Passage
•
KG
7 questions
How to Make a Fruit Salad

Passage
•
10th Grade
6 questions
Reading lv4: Eating right

Passage
•
8th Grade
8 questions
Circuit Construction

Passage
•
9th Grade
6 questions
The Food Pyramid and Healthy Eating

Passage
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade