Exam 5: Interfaces, Implementations, and Polymorphism
Exam 1: Basic Python Programming51 Questions
Exam 2: An Overview of Collections50 Questions
Exam 3: Searching, Sorting, and Complexity Analysis50 Questions
Exam 4: Arrays and Linked Structures50 Questions
Exam 5: Interfaces, Implementations, and Polymorphism50 Questions
Exam 6: Inheritance and Abstract Classes50 Questions
Exam 7: Stacks50 Questions
Exam 8: Queues50 Questions
Exam 9: Lists50 Questions
Exam 10: Trees50 Questions
Exam 11: Sets and Dictionaries50 Questions
Exam 12: Graphs50 Questions
Select questions type
Which Python function allows you to obtain information about a module, data type, method, or function?
(Multiple Choice)
4.9/5
(35)
When Python sees a for loop on an iterable object, it runs that object's __add__ method.
(True/False)
4.9/5
(41)
The code for the add method for the ArrayBag class is shown below. What is the missing code?
Def add(self, item):
Self.items[len(self)] = item
< missing code >
(Multiple Choice)
4.8/5
(31)
What is the last step in the remove function in the ArrayBag class?
(Multiple Choice)
4.8/5
(34)
What is found in the body of the method code that is used to document the method?
(Multiple Choice)
4.9/5
(41)
When Python sees the in operator used with a collection, it runs the __contains__ method in the collection's class.
(True/False)
4.8/5
(39)
When the LinkedBag structure is not empty, self.items refers to the last node in the linked structure.
(True/False)
4.8/5
(33)
The design and implementation of a collection class consists of two steps. What is the first step?
(Multiple Choice)
4.8/5
(34)
What is the name of the method that performs the constructor operation for a class?
(Multiple Choice)
4.9/5
(46)
The logical size of an array-based bag will always be the same as the array's capacity.
(True/False)
4.8/5
(38)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)