
Python Lists, Tuples, Dictionaries, and Sets Quiz

Quiz
•
Engineering
•
University
•
Medium
Vidya Bhosale
Used 1+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a list in Python?
list = {}
list = ()
list = []
list = <>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list my_list?
my_list[0]
my_list[1]
my_list(-1)
my_list.first()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of len([1, 2, 3, 4])?
3
4
5
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of [1, 2, 3] + [4, 5]?
[1, 2, 3, 4, 5]
[5, 7, 8]
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does my_list[1:3] do?
Returns 1st and 3rd elements
Returns a list with elements at index 1 and 2
Returns all elements except 1 and 3
Syntax error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an element to a list?
add()
append()
insert()
push()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of list("abc")?
"abc"
["abc"]
['a', 'b', 'c']
{'a','b','c'}
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University