
List Methods Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Nisreen Ariwala
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the count() method do in a list?
Returns the index of the first occurrence of an element
Returns the number of times a given element appears in the list
Removes the first occurrence of an element from the list
Reverses the order of elements in the list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you call index() on an element not in the list?
It will return -1
It will return None
It will remove the element from the list
It will generate a ValueError
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the remove() method do?
Reverses the list
Removes all occurrences of an element
Removes the last element of the list
Removes the first occurrence of a specified element
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pop() method return if no index is specified?
The middle element of the list
The first element of the list
The last element of the list
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of calling reverse() on the list ['Tiger', 'Zebra', 'Lion']?
['Tiger', 'Lion', 'Zebra']
['Lion', 'Tiger', 'Zebra']
['Lion', 'Zebra', 'Tiger']
['Zebra', 'Tiger', 'Lion']
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the list look like after executing list1.remove(30) on list1 = [10, 20, 30, 40, 50, 30]?
[10, 20, 40, 50, 30]
[10, 20, 30, 50]
[10, 20, 30, 40, 50, 30]
[10, 20, 30, 40, 50]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the sort() method do?
Sorts the elements of the list in place
Returns a sorted copy of the list
Reverses the order of elements in the list
Removes duplicates from the list
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of list1.index(90) if list1 = [10, 20, 30]?
None
0
2
ValueError
Similar Resources on Wayground
10 questions
Programming Constructs
Quiz
•
5th - 11th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
36 questions
Benchmark 2 Review (LEAP)
Quiz
•
11th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
