
Python-List
Authored by harshit shukla
Computers
8th Grade
Used 5+ 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
1 min • 1 pt
Suppose list1 is [1, 3, 2, 4, 5, 2, 1, 0],
What is list1[-1]?
3
5
1
0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 4, 5, 20, 5], what is
print(list1.index(5))
3
2
IndexError: list index out of range
4
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 4, 5, 20, 5.0, "5", 1, 3, 5, 5.0],
what is
print(list1.count(5))
2
3
4
5
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following would give an error?
lista = []
lista = []*3
lista = [2, 8, 7,]
None of the Above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after
print(list1.[::-2])
[3, 1, 25, 5,
20, 5, 4, 3]
[3, 4, 5, 20, 5,
25, 1, 3]
[3, 25, 20, 4]
[1, 5, 5, 3]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose listExample is [5, 3, 8, 15, 4], what is listExample after
print(listExample.popitem())
AttributeError: 'list' object has
no attribute 'popitems'
[5, 3, 8, 15, 4]
[5, 3, 8, 15]
[3, 8, 15, 4]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Select the correct options to join two lists in Python.
list1 = [‘a’, ‘b’, ‘c’, ‘d’]
list2 = [‘e’, ‘f’, ‘g’]
Can have multiple correct Answers
newList =
list1 * list2
newList =
list1 + list2
newList.extend
(list1, list2)
newList = extend(list1, list2)
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
M2 Flowchart P2
Quiz
•
7th - 8th Grade
10 questions
QUIZ B1
Quiz
•
1st Grade - University
15 questions
Sejarah Komputer 2
Quiz
•
1st - 12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
14 questions
Adobe Premiere Pro :>>
Quiz
•
8th Grade
10 questions
Computer Lab Rules & Behaviors
Quiz
•
6th - 8th Grade
9 questions
Измерение информации
Quiz
•
8th - 10th Grade
10 questions
Tecnología e Informática - Evaluación general Tercer Período - 8
Quiz
•
6th - 8th 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