
Python Lists Quiz
Authored by Ayaka Ikawa
Computers
6th 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
What will be the output of the following code: mylist = ['apple', 'banana', 'cherry']; print(mylist[1])?
cherry
banana
apple
orange
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to create a list in Python?
mylist = 'apple', 'banana', 'cherry'
mylist = ['apple', 'banana', 'cherry']
mylist = ('apple', 'banana', 'cherry')
mylist = {'apple', 'banana', 'cherry'}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named 'fruits'?
fruits[first]
fruits[-1]
fruits[1]
fruits[0]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of 'cherry' in the list ['apple', 'banana', 'cherry']?
1
3
0
2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to add an item to the end of a list?
add()
append()
insert()
extend()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove the item 'banana' from the list ['apple', 'banana', 'cherry']?
remove('banana')
pop('banana')
delete('banana')
discard('banana')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of len(['apple', 'banana', 'cherry'])?
2
3
4
5
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
20 questions
General ICT Questions (Part 1)
Quiz
•
5th - 12th Grade
14 questions
Research
Quiz
•
6th - 8th Grade
10 questions
tebak buah
Quiz
•
1st - 6th Grade
20 questions
Internet Logos
Quiz
•
6th - 10th Grade
20 questions
IC3 SPARK LV3 - CHỦ ĐỀ 4 - SÁNG TẠO NỘI DUNG - LỚP 5
Quiz
•
5th Grade - University
10 questions
Printer Types
Quiz
•
6th Grade
15 questions
Year 7 History of Computers
Quiz
•
6th Grade
10 questions
Year 7: 2: Processors
Quiz
•
5th - 9th 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