
Python List Operations 2
Authored by DHANESH ABRAHAM
Computers
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
100 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
L = [10, 20, 30, 40, 50]
result = L[-4:4:2]
print(result)
[20, 40]
[20, 30, 40]
[30]
[20]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of len(L) after the following operations?
L = [1, 2] * 3
L = L + [4, 5]
6
7
8
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? Python ?
L = [1, 2, 3]
L[1:3] = [9, 8, 7, 6]
print(L)
[1, 9, 8, 7, 6]
[1, 9, 8, 7, 6, 4]
[1, 9, 8, 7, 6, 3]
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
L = ['a', 'b', 'c', 'd']
L[-1] = L[0]
print(L)
['a', 'b', 'c', 'a']
['d', 'b', 'c', 'a']
['d', 'b', 'c', 'd']
['a', 'b', 'c', 'd']
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
L = [10, 20, 30, 40]
What is the output of L[-1] + L[-2]?
70
60
50
30
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
L = ['a', 'b', ['x', 'y', 'z']]
What is the result of 'z' in L?
True
False
Error
Depends on Python version
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output?
L = [10, 20, 30, 40]
print(L[-2:])
[30, 40]
[20, 30, 40]
[40]
[10, 20]
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
100 questions
Chess Quiz - Compilation
Quiz
•
KG - Professional Dev...
100 questions
Active Directory Domain Services (AD DS) Fundamentals Quiz
Quiz
•
12th Grade
99 questions
Untitled Quiz
Quiz
•
10th Grade - University
100 questions
POST TEST - KKTKJ
Quiz
•
10th Grade - University
101 questions
TIN GK1
Quiz
•
12th Grade
100 questions
Python String Operations and Methods
Quiz
•
12th Grade
95 questions
#xamluoccampuchia
Quiz
•
12th Grade
100 questions
Year 7 Scratch Test
Quiz
•
6th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade