Python - Lists and Elements
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Karen Koelm
Used 10+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct command to define a list?
list = [ , , , ]
list == [ , , , ]
list = ( , , , )
list = , , , ,
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list = [5, 3, 7, 3, 8, 9]
Which element is the list is represented by list[4]?
7
3
8
9
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list = [5, 3, 7, 3, 8, 9]
Which element is the list is represented by list[-1]?
5
3
8
9
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for this code?
num = [ 1, 2, 5 ]
val = [ 5, 6, 7 ]
total = num + val
print(total)
[1, 2, 5, 5, 6, 7]
[1, 2, 5, 6, 7]
[5, 6, 7, 1, 2, 5]
[1, 5, 2, 6, 5, 7]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
pic = ["movie", "jpeg", "selfie", "meme"]
What is generated by the command
print( pic[ :3] ) ?
["movie", "jpeg"]
["movie", "jpeg", "selfie"]
["movie", "jpeg", "selfie", "meme"]
["meme"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for this code?
red = [122, 123, 128, 129]
red[2] = 140
print(red)
[140, 140]
[122, 123, 129, 140]
[122, 140, 128, 129]
[122, 123, 140, 129]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for this code?
food = ["bread", "cake", "donuts"]
print(food.append("biscuit"))
['bread', 'cake', 'biscuit']
['bread', 'cake', 'donuts', 'biscuit']
['biscuit']
['bread', 'biscuit', 'donuts']
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
Already have an account?
Similar Resources on Wayground
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
10 questions
kiểm tra 15 phút tin 7
Quiz
•
6th - 9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
10 questions
Quiz Informatika 10.8, 10.9, 10.10
Quiz
•
10th Grade
10 questions
Quiz Excel 3
Quiz
•
10th Grade
15 questions
Minecraft
Quiz
•
12th Grade
10 questions
Ekstensi File (TIK kelas 9)
Quiz
•
9th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
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
