
Python Lists Quiz

Quiz
•
Computers
•
6th Grade
•
Easy
Ayaka Ikawa
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: mylist = ['apple', 'banana', 'cherry']; print(mylist[1])?
cherry
banana
apple
orange
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to create a list in Python?
mylist = 'apple', 'banana', 'cherry'
mylist = ['apple', 'banana', 'cherry']
mylist = ('apple', 'banana', 'cherry')
mylist = {'apple', 'banana', 'cherry'}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named 'fruits'?
fruits[first]
fruits[-1]
fruits[1]
fruits[0]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of 'cherry' in the list ['apple', 'banana', 'cherry']?
1
3
0
2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to add an item to the end of a list?
add()
append()
insert()
extend()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove the item 'banana' from the list ['apple', 'banana', 'cherry']?
remove('banana')
pop('banana')
delete('banana')
discard('banana')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of len(['apple', 'banana', 'cherry'])?
2
3
4
5
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
3rd L4 Needs and Wants

Quiz
•
6th Grade
10 questions
Q3_Review Quiz 2

Quiz
•
6th - 8th Grade
13 questions
Variables & Lists

Quiz
•
6th Grade
10 questions
ข้อสอบ เรื่อง List

Quiz
•
6th Grade
10 questions
How Computers Work - #2

Quiz
•
4th - 6th Grade
18 questions
Computer Fundamentals

Quiz
•
6th Grade
13 questions
ile pamiętasz z podstawówki, wersja informatyka

Quiz
•
6th - 8th Grade
15 questions
Kiến thức về List trong Python

Quiz
•
6th 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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade