
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
45 questions
Lines and Faces MCHE
Quiz
•
University
48 questions
Structural
Quiz
•
University
50 questions
13.3.1 - Civil Engineering Applications - Bridges
Quiz
•
10th Grade - University
50 questions
DLD Assessment 1
Quiz
•
University
50 questions
Java Programming Basics Assessment
Quiz
•
University
50 questions
BSEC
Quiz
•
1st Grade - University
50 questions
Mikroişlemciler-CPU
Quiz
•
University
50 questions
DBMS Quiz2
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Engineering
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
