What is the correct command to define a list?
Python - Lists and Elements

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Karen Koelm
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
12 questions
RO81 File Formats [Revision #1]

Quiz
•
9th - 11th Grade
12 questions
Digital Images - File Types

Quiz
•
9th - 10th Grade
10 questions
Информатика огэ

Quiz
•
9th Grade
15 questions
Informatika pro 5. ročník

Quiz
•
6th - 9th Grade
10 questions
Python lists and tuples

Quiz
•
12th Grade
12 questions
مراجعة درس أساسيات تحرير الصور

Quiz
•
9th - 12th Grade
10 questions
Web Design: Basics of HTML and CSS

Quiz
•
9th - 12th Grade
10 questions
Sorting Algorithms

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University