Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) self.init(ArrayBag, sourceCollection)
B) ArrayBag.self(__init__, sourceCollection)
C) ArrayBag.__init__(self, sourceCollection)
D) __init__.ArrayBag(self, sourceCollection)
Correct Answer
verified
Multiple Choice
A) they are abstract classes
B) they implement the bag interface
C) the are all superclasses
D) LinkedBag is a subclass of ArraySortedBag
Correct Answer
verified
Multiple Choice
A) concrete class
B) abstract class
C) subclass
D) child class
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) when it refers to the same type of data structure
B) when it is unique to a particular concrete class
C) when different data structure types are referenced by the variable
D) when it directly modifies the underlying data structure
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) to ensure the add method in ArraySortedBag is called if a source collection is specified
B) to ensure that ArraySortedBag calls the correct __init__ method
C) to ensure that ArrayBag calls its own __init__ method
D) to ensure the add method in ArrayBag is called if a source collection is specified
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) self
B) list
C) dict
D) object
Correct Answer
verified
Multiple Choice
A) items.add(self)
B) self.items = Array(ArrayBag.DEFAULT_CAPACITY)
C) self.items = ArrayBag.add(sourceCollection)
D) add.items(self, sourceCollection)
Correct Answer
verified
Multiple Choice
A) to group methods used by a single subclass
B) to hide the details of the methods used in your abstract classes
C) to create objects from a client application
D) to group methods that can be used for other types of collections
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) the ArraySortedBag class is the parent of the ArrayBag class
B) the ArraySortedBag class is a subclass of ArrayBag
C) the ArrayBag class is a subclass of ArraySortedBag
D) the ArrayBag class is the child class of ArraySortedBag
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Showing 21 - 40 of 50
Related Exams