
Understanding Lists in Python
Quiz
•
Information Technology (IT)
•
7th Grade
•
Practice Problem
•
Medium
John Heatley
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a list of fruits in Python?
fruits = "apple", "banana", "cherry"
fruits = ["apple", "banana", "cherry"]
fruits = {"apple", "banana", "cherry"}
fruits = ("apple", "banana", "cherry")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of the list `numbers = [10, 20, 30, 40]`?
numbers[1]
numbers[0]
numbers(0)
numbers.first()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ```python colours = ["red", "blue", "green"] print(colours[2]) ```
"red"
"blue"
"green"
"colours"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following creates an empty list in Python?
empty = ()
empty = []
empty = {}
empty = ""
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the list `animals = ["cat", "dog", "rabbit"]`, what does `animals[1]` return?
"cat"
"dog"
"rabbit"
1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of "banana" in the list `fruits = ["apple", "banana", "cherry"]`?
0
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the last element of the list `numbers = [5, 10, 15, 20]` using a negative index?
numbers[-1]
numbers[-2]
numbers[3]
numbers[4]
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
20 questions
G7 STS 2 Informatika
Quiz
•
7th Grade
20 questions
PRE-TEST BAB III TIK
Quiz
•
7th Grade
15 questions
Data Literacy Quizizz
Quiz
•
6th Grade - University
20 questions
Quiz Mengenal Data VII
Quiz
•
7th Grade - University
20 questions
UH Informatika Sistem Komputer
Quiz
•
7th Grade
15 questions
Pengantar Laboratorium Maya
Quiz
•
7th Grade
19 questions
Communications Essentials L1
Quiz
•
6th - 8th Grade
19 questions
Ôn tập HKI Tin học - Khối 5
Quiz
•
5th Grade - University
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
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
20 questions
Ethos, Pathos, Logos Practice
Quiz
•
6th - 7th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
