
Data Structures Quiz

Quiz
•
Computers
•
1st Grade
•
Medium
Adham Elmuntser
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is immutable?
List
Set
Tuple
Dictionary
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure allows duplicate elements?
Set
Dictionary
Tuple
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named my_list?
my_list{0}
my_list[0]
my_list(0)
my_list.0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure does not allow duplicate elements?
List
Tuple
Set
Dictionary
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an item to a set named my_set?
my_set.add(7)
my_set.append(7)
my_set.insert(7)
my_set[7] = None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(len({1, 2, 2, 3}))?
2
3
4
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement will raise a TypeError when executed?
my_list.append(6)
my_set.add(6)
my_tuple[0] = 100
my_dict['b'] = 20
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
python1

Quiz
•
1st - 5th Grade
16 questions
Тест по множествам в Python

Quiz
•
1st - 5th Grade
16 questions
Parts of Computer, Terms and Cybersecurity

Quiz
•
1st - 5th Grade
20 questions
Python

Quiz
•
KG - 10th Grade
20 questions
Data Relational Model

Quiz
•
1st Grade
15 questions
Conocimientos Básicos de Python

Quiz
•
1st Grade
20 questions
Data Structures Quiz

Quiz
•
1st Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade