
PYTHON DATA STRUCTURES
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Arjun Kulshrestha
Used 15+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_list = [1, 2, 3, 4, "This is a String", "1"]
print(my_list[2])
What will be the output of the above code?
3
4
Error
This is a String
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_tuple = (5, 10, 15, 20)
print(len(my_tuple))
What will be the output of the above code?
4
10
15
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_dict = {"apple": 3, "banana": 5, "orange": 2}
print(my_dict["banana"])
What will be the output of the above code?
3
5
2
"banana"
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_set = {1, 2, 3, 4, 5}
my_set.add(6)
print(my_set)
What will be the output of the above code?
a) {1, 2, 3, 4, 5, 6}
b) {1, 2, 3, 4, 5}
{6}
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_list = [1, 2, 3, 4, 5]
my_list.remove(3)
print(my_list)
a) [1, 2, 4, 5]
b) [1, 2, 3, 4, 5]
c) [1, 2, 4]
d) Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_tuple = (10, 20, 30, 40, 50)
print(my_tuple[-2])
What will be the output of the above code?
30
40
20
50
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
my_dict = {"apple": 3, "banana": 5, "orange": 2}
print("grape" in my_dict)
What will be the output of the above code?
"grape"
False
True
Error
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
Post-test Orange Fundamental
Quiz
•
University
10 questions
SHINE
Quiz
•
University
10 questions
EFFECTIVE GROUP DISCUSSION
Quiz
•
9th Grade - University
10 questions
CALCITONIN (MUSCULOSKELETAL)
Quiz
•
University
20 questions
BJT AC Analysis Round1
Quiz
•
University
10 questions
Seminario de úlceras
Quiz
•
University
10 questions
UK Knowledge Test
Quiz
•
University
10 questions
Introduction to CSS
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
