
Mastering Python List Operations

Quiz
•
Computers
•
7th Grade
•
Medium
Ammar Hanifi
Used 7+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Tile Program

Quiz
•
KG - 8th Grade
11 questions
Coding Basics in Swift

Quiz
•
7th Grade
14 questions
Databases

Quiz
•
7th - 10th Grade
10 questions
S2 Scratch Knowledge Check 1

Quiz
•
7th Grade
15 questions
Java Basic Data Structures

Quiz
•
6th - 10th Grade
15 questions
Python - тест

Quiz
•
1st - 12th Grade
13 questions
Елементи списку

Quiz
•
7th Grade
11 questions
Python Ifs, Lists, and Loops

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade