Correct Answer
verified
Multiple Choice
A) =
B) *
C) +
D) %
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) right = midPoint + 1
B) left = midPoint - 1
C) right = left + 1
D) left = midPoint + 1
Correct Answer
verified
Multiple Choice
A) reference the abstract class in their __init__ method.
B) copy the code to the subclass file
C) nothing, the abstract class is automatically included in the subclass
D) import the abstract class
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) add
B) isEmpty
C) __len__
D) count
Correct Answer
verified
Multiple Choice
A) delete the methods that do not change
B) duplicate redundant instance variables
C) modify the code for methods that change
D) add any new methods
Correct Answer
verified
Multiple Choice
A) the add method is identical in both
B) the __init__ method is identical in both
C) the sorted bag's in operator runs in linear time
D) the items in a sorted bag must be of the same type
Correct Answer
verified
Multiple Choice
A) result = result + 1
B) item.add(result)
C) result.add(item)
D) add.item(result)
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) add.self(item)
B) ArrayBag.add(item)
C) ArrayBag.add(self, item)
D) add.ArrayBag(self, item)
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) __iter__
B) __contains__
C) __init__
D) add
Correct Answer
verified
Showing 1 - 20 of 50
Related Exams