Python Lists Quiz

Quiz
•
Computers
•
University
•
Easy
Sherif Abdelhamid
Used 24+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for creating a list in Python?
my_list = {1, 2, 3, 4, 5}
my_list = [1, 2, 3, 4, 5]
my_list = [1 2 3 4 5]
my_list = (1, 2, 3, 4, 5)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list in Python?
list_name[0]
list_name[1]
list_name[first]
list_name[-1]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to add an element to the end of a list in Python?
append()
insert()
remove()
extend()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of [1, 2, 3] + [4, 5, 6] in Python?
[1, 2, 3, 4, 5]
[5, 7, 9, 11]
[1, 2, 3, 9, 10, 11]
[1, 2, 3, 4, 5, 6]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term for a list within another list in Python?
Sub list
Nested list
Listception
Double list
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the last element of a list in Python?
list_name[-1]
list_name.last
list_name[last]
list_name(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is a list in Python mutable or immutable?
fixed
mutable
dynamic
immutable
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
HCI 584 Python quiz

Quiz
•
University
15 questions
Python функциялары 7 сынып

Quiz
•
12th Grade - University
10 questions
basic programming quiz

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
15 questions
SCRIPTING PROGRAMMING WITH PYTHON

Quiz
•
University
10 questions
Python Round 2

Quiz
•
University
10 questions
Lists in python

Quiz
•
University
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
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