
Data Structures Quiz

Quiz
•
Computers
•
1st Grade
•
Hard
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
17 questions
Secure Passwords

Quiz
•
KG - 12th Grade
16 questions
Тест по множествам в Python

Quiz
•
1st - 5th Grade
15 questions
Вопросы по Python

Quiz
•
1st - 5th Grade
20 questions
Data Structures Quiz

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

Quiz
•
KG - Professional Dev...
15 questions
Data Structures Quiz

Quiz
•
1st Grade
20 questions
Python Data Structures Quiz

Quiz
•
1st Grade
20 questions
Python Quiz

Quiz
•
1st Grade
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