
Python Lists Quiz (Grade 9)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Leila Mardenova
Used 2+ 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)
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
15 questions
Quis Grade 5
Quiz
•
9th - 12th Grade
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Anime
Quiz
•
KG - University
12 questions
Algoritmos
Quiz
•
8th - 9th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
