DATA STRUCTURES QUIZ WITH
VERIFIED ANSWERS
data structure - Correct Answers -an object that can be used to store a collection of
related data
examples of data structures - Correct Answers -List, Tuple, Dictionary
This method provides the length of any object passed as an argument (not just a data
structure) if a length exists - Correct Answers -len()
Lists are_____________, meaning they can be altered - Correct Answers -mutable
Each List item is given a specific_______(starting with______) - Correct Answers -
index, 0
Removing an item from a List - Correct Answers -del
A________is a data structure that holds an ordered collection of items in a sequence -
Correct Answers -list
Lists are specified by using square______________when being defined - Correct
Answers -square brackets [ ]
a________is also a data structure that holds an ordered collection of items in a
sequence - Correct Answers -Tuple
Tuples are specified by using________________when being defined - Correct Answers
-parentheses ( )
However, Tuples are____________, meaning we cannot change them once they are
declared - Correct Answers -immutable
They are created under the assumption that the data will not change - Correct Answers
-Tuple
Tuples can reference its items with square brackets [ ]
T/F - Correct Answers -True
Tuples don't have a length - len(myTuple)
VERIFIED ANSWERS
data structure - Correct Answers -an object that can be used to store a collection of
related data
examples of data structures - Correct Answers -List, Tuple, Dictionary
This method provides the length of any object passed as an argument (not just a data
structure) if a length exists - Correct Answers -len()
Lists are_____________, meaning they can be altered - Correct Answers -mutable
Each List item is given a specific_______(starting with______) - Correct Answers -
index, 0
Removing an item from a List - Correct Answers -del
A________is a data structure that holds an ordered collection of items in a sequence -
Correct Answers -list
Lists are specified by using square______________when being defined - Correct
Answers -square brackets [ ]
a________is also a data structure that holds an ordered collection of items in a
sequence - Correct Answers -Tuple
Tuples are specified by using________________when being defined - Correct Answers
-parentheses ( )
However, Tuples are____________, meaning we cannot change them once they are
declared - Correct Answers -immutable
They are created under the assumption that the data will not change - Correct Answers
-Tuple
Tuples can reference its items with square brackets [ ]
T/F - Correct Answers -True
Tuples don't have a length - len(myTuple)