
Mastering Python List Operations
Authored by Ammar Hanifi
Computers
7th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: list1 = [1, 2, 3]; print(list1[0])?
1
3
0
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an element '4' to the end of list1 = [1, 2, 3]?
list1.insert(4)
list1.add(4)
list1.append(4)
list1.extend(4)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the method list1.remove(2) do to the list list1 = [1, 2, 3]?
The list becomes [1, 3].
The list becomes [1].
The list becomes [2, 3].
The list becomes [1, 2, 3].
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If list2 = [5, 6, 7] and you execute list1=list2, what will list1 contain?
[5, 6, 7]
[5, 6]
[5, 6, 7, 8]
[6, 7]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List1=[0,2,3] .What is the result of len(List)?
[2, 3]
2
3
[1, 2, 3]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a new list that is a copy of list1 = [1, 2, 3]?
new_list = list1.extend([])
new_list = list1.copy() or new_list = list1[:]
new_list = list1.append(4)
new_list = list1 + []
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: list1 = [1, 2, 3,7]; print(len(list1))?
2
4
3.5
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
10 questions
KIỂM TRA TIN 7 (10 phút)
Quiz
•
7th Grade
10 questions
COMPONENTES - CIRCUITO ELÉTRICO II
Quiz
•
6th - 8th Grade
10 questions
Excel
Quiz
•
7th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
APP LAB 2
Quiz
•
7th Grade
10 questions
Conosci Eoc-Desk?
Quiz
•
1st - 12th Grade
10 questions
Pangkalan Data (Kekunci Primer, Kekunci Asing, Kekardinalan)
Quiz
•
7th - 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