Exam 17: Object-Oriented Design
Exam 1: Introduction36 Questions
Exam 2: Analysis of Algorithms31 Questions
Exam 3: Introduction to Collections - Stacks49 Questions
Exam 4: Linked Structures - Stacks51 Questions
Exam 5: Queues28 Questions
Exam 6: Lists42 Questions
Exam 7: Iterators32 Questions
Exam 8: Recursion57 Questions
Exam 9: Searching and Sorting54 Questions
Exam 10: Trees47 Questions
Exam 11: Binary Search Trees50 Questions
Exam 12: Heaps and Priority Queues29 Questions
Exam 13: Sets and Maps47 Questions
Exam 14: Multi-Way Search Trees47 Questions
Exam 15: Graphs29 Questions
Exam 16: UML16 Questions
Exam 17: Object-Oriented Design54 Questions
Select questions type
The reserved word ______ represents a reference that does not point to a valid object.
Free
(Short Answer)
5.0/5
(37)
Correct Answer:
null
What is an aggregate object?
Free
(Short Answer)
5.0/5
(30)
Correct Answer:
An aggregate object is an object that is made up of other objects.
A reference variable can refer to any object created from any class related to it by ___________.
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
A polymorphic reference uses the type of the reference, not the type of the object, to determine which version of a method to invoke.
(True/False)
4.8/5
(40)
Instance variables should be declared with public visibility to promote encapsulation.
(True/False)
5.0/5
(37)
Inheritance can be applied to interfaces, so that one interface can be derived from another interface.
(True/False)
4.8/5
(31)
Interfaces allow us to make ______ references, in which the method that is invoked is based on the particular object being referenced at the time.
(Short Answer)
4.9/5
(41)
If an exception is not caught and handled where it occurs, it is ______ to the calling method.
(Short Answer)
4.7/5
(45)
Each _______ clause on a try statement handles a particular kind of exception that may be thrown within the try block.
(Multiple Choice)
4.9/5
(41)
A child class can _________ (redefine) the parent's definition of an inherited method.
(Multiple Choice)
4.9/5
(38)
Several references can refer to the same object. These references are ________ of each other.
(Multiple Choice)
4.8/5
(26)
A ______ reference can refer to different types of objects over time.
(Short Answer)
4.9/5
(45)
A parent's constructor can be invoked using the ______ reference.
(Short Answer)
4.9/5
(36)
Showing 1 - 20 of 54
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)