
Python List Operations 2
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
DHANESH ABRAHAM
Used 5+ times
FREE Resource
Enhance your content in a minute
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]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
100 questions
Kiến thức về màn hình và thiết bị thông minh
Quiz
•
12th Grade
100 questions
2526_Ôn tập Tin 12 GK1
Quiz
•
12th Grade
104 questions
M1 R5 Chapter 9
Quiz
•
12th Grade
99 questions
MS Word 2010 Quiz
Quiz
•
12th Grade
99 questions
tin2
Quiz
•
12th Grade
102 questions
Quiz Teknik Pengolahan Audio dan Video
Quiz
•
12th Grade
105 questions
SOAL US TEKNIK KOMPUTER DAN JARINGAN XII
Quiz
•
9th - 12th Grade
103 questions
tin của bé
Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
