
Python List Questions
Authored by RITIKA GUPTA
Information Technology (IT)
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the list `stationery = ['Notebook', 'Pen', 'Pencil', 'Eraser', 'Sharpener'] `, which statement outputs 'Pen'?
print(stationery[0])
print(stationery[1])
print(stationery[2])
print(stationery [3])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? colors = [] colors.append('red') colors.append('blue') colors.append('green') colors.append('pink') print(colors[2])
red
blue
green
pink
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to insert 'apples' as the first element of the list `fruit`?
fruit.append('apples')
fruit.insert('apples', 0)
fruit.append('apples', 0)
fruit.insert(0, 'apples')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the length of the list after executing the following? a = [2, 6, 8, 10, 67, 8, 90] a.remove(8) print(len(a))
5
4
6
7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to sort the list `score` in descending order? score = [45, 22, 89, 34, 10, 90]
score.sort()
sorted(score)
score.sort(reverse=True)
sorted(score, reverse=True)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of `sampleList[2:4]`if `sampleList = [10, 20, 30, 40, 50]`?
[20, 30, 40]
[30, 40, 50]
[20, 30, 40, 50]
[30, 40]
7.
OPEN ENDED QUESTION
3 mins • 1 pt
Final contents of `myList` after the following operations: myList = [80, 70] myList.append(60) myList.extend([50, 40])
Evaluate responses using AI:
OFF
Answer explanation
Starting with myList = [80, 70], we append 60, resulting in [80, 70, 60]. Then, we extend it with [50, 40], giving us [80, 70, 60, 50, 40]. Thus, the final contents of myList are [80, 70, 60, 50, 40].
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
14 questions
S2 Innov8 Databases 1
Quiz
•
6th - 8th Grade
10 questions
Soal Informatika jenjang SMP/MTs
Quiz
•
6th - 8th Grade
20 questions
RBT TAHUN 4 : Aplikasi Scratch
Quiz
•
6th - 8th Grade
20 questions
mid exam 2017
Quiz
•
8th Grade
12 questions
Fundamentals
Quiz
•
7th Grade - University
10 questions
ICT 4TH TERM CONCEPTUAL ASSESSMENT 8th
Quiz
•
8th Grade
14 questions
Google sheets
Quiz
•
7th Grade - University
10 questions
Penilaian Operasi Komputer Dasar
Quiz
•
7th Grade - University
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
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade