Multiple Choice
In the Bag class defined in the chapter, what is one of the purposes of the sourceCollection argument in the __init__ method?
A) to create a bag with the contents of another collection
B) to delete the contents of an existing collection
C) to define source code for the method
D) to add data to an existing bag collection
Correct Answer:

Verified
Correct Answer:
Verified
Q19: The code for the _iter_ method is
Q20: What testing tool can be used to
Q21: The _iter_ method uses a yield statement
Q22: When defining the Bag class, the _init_
Q23: You should always try to hide the
Q25: What is it called when the contents
Q26: Software bags can grow as more items
Q27: Once the designer of a collection class
Q28: The running times of the operations of
Q29: Why won't some of the ArrayBag methods