
Python Lists Quiz (Grade 9)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Leila Mardenova
Used 1+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a list in Python?
my_list = {1, 2, 3}
my_list = (1, 2, 3)
my_list = [1, 2, 3]
my_list = "1, 2, 3"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
10
20
30
40
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the last element of a list my_list = [5, 10, 15, 20] using negative indexing?
my_list[0]
my_list[-1]
my_list[-2]
my_list[3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
["apple", "banana", "cherry"]
["orange", "banana", "cherry"]
["apple", "orange", "cherry"]
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to find the number of elements in a list?
size()
length()
len()
count()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to add 50 to the end of the list numbers = [10, 20, 30, 40]?
numbers.add(50)
numbers.append(50)
numbers.insert(50)
numbers[4] = 50
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove the first occurrence of 3 from my_list = [1, 2, 3, 4, 3, 5]?
my_list.pop(3)
my_list.remove(3)
del my_list[3]
my_list.delete(3)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Archivos Digitales
Quiz
•
9th Grade - University
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
16 questions
Acceptable Use Policy
Quiz
•
6th - 9th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
10 questions
Tin học 9 Bài 7: Phần mềm trình chiếu
Quiz
•
9th Grade
12 questions
Електронні таблиці Exel
Quiz
•
1st - 12th Grade
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
