
List Methods Quiz

Quiz
•
Computers
•
11th Grade
•
Medium
Nisreen Ariwala
Used 1+ times
FREE Resource
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
AP CS A Unit 7 Quiz PRACTICE

Quiz
•
9th - 12th Grade
10 questions
List - Class XI

Quiz
•
11th Grade
10 questions
CSS Grade 11 NIS Aktobe

Quiz
•
11th Grade
10 questions
ArrayLists

Quiz
•
11th - 12th Grade
12 questions
HTML & CSS

Quiz
•
10th - 12th Grade
10 questions
List quiz1

Quiz
•
9th - 12th Grade
10 questions
Introduction to HTML/CSS Quiz 1: Overview and Setup

Quiz
•
6th - 12th Grade
10 questions
ArrayLists

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade