
Python Lists

Quiz
•
Computers
•
10th Grade
•
Hard
Irene Feng
Used 4+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which line of code is correct for creating a list of numbers?
num = ('10','29','37','109')
num = [10,29,37,109]
num = (10,29,37,109)
num = ['10 29 37 109']
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the index of the element with value 'Spain'?
['England','Brazil','Spain','France']
0
1
2
3
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which functions can I use to add an item(s) to a list?
variable.add()
variable.append()
variable.insert()
variable.extend()
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do i remove something from a list?
variable.pop()
del variable[index]
variable.remove()
variable.del()
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following is valid python code for the list p?
p = [99, 9, 2, 33, 11]
p[5]
p[1:3]
p[2:]
p[2:0]
p[1:5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is lis after this code is run?
Error
None
[2,3,4,23]
[2,3,4,2,3]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
[1, 2, 3]
[1, 2, 3, 4]
[4, 1, 2, 3]
Error
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python list starter

Quiz
•
10th Grade - University
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
15 questions
BASIC C PROGRAMMING

Quiz
•
University
12 questions
Unit 5 Lists, Loops, & Traversals

Quiz
•
10th - 12th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
10 questions
PCEP Section 4B: the function and its environment

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade