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
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
Similar Resources on Wayground
10 questions
LIST - 1 - PYTHON 11

Quiz
•
11th Grade
12 questions
2.1 Bubble sort vs Insertion sort

Quiz
•
10th - 11th Grade
10 questions
Comp Sci Unit 3 #9

Quiz
•
11th Grade
10 questions
Latihan ICT Part 1

Quiz
•
10th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
15 questions
Berpikir Komputasional 2

Quiz
•
10th Grade
10 questions
PYTHON (FOR LOOP)

Quiz
•
1st - 10th Grade
15 questions
Section 3A: Collect and process data using lists

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade