Exam 12: Object-Oriented Design
Exam 1: Introduction96 Questions
Exam 2: Fundamental Data Types103 Questions
Exam 3: Decisionseasy99 Questions
Exam 4: Loops100 Questions
Exam 5: Methods94 Questions
Exam 6: Arrays and Arraylists100 Questions
Exam 7: Inputoutput and Exception Handling100 Questions
Exam 8: Objects and Classes101 Questions
Exam 9: Inheritance and Interfaces99 Questions
Exam 10: Graphical User Interfaces54 Questions
Exam 11: Advanced User Interfaces91 Questions
Exam 12: Object-Oriented Design100 Questions
Exam 13: Recursion100 Questions
Exam 14: Sorting and Searching99 Questions
Exam 15: The Java Collections Framework100 Questions
Exam 16: Basic Data Structures94 Questions
Exam 17: Tree Structures100 Questions
Exam 18: Generic Classes78 Questions
Exam 19: Streams and Binary Inputoutput82 Questions
Exam 20: Multithreading82 Questions
Exam 21: Internet Networking74 Questions
Exam 22: Relational Databases75 Questions
Exam 23: XML74 Questions
Exam 24: Web Applications74 Questions
Select questions type
You are designing a software solution for a veterinary clinic. The clinic provides various services for each pet on each visit. You have decided that the following nouns apply to the requirements: Customer, Address, Pet, Visit, Visit Date, Service Charge, Total Charge, Next Appointment. Which of these should be represented as instance variables?
(Multiple Choice)
4.8/5
(43)
If many classes of a program depend on each other, we say that ____.
(Multiple Choice)
5.0/5
(37)
The dependency relationship is sometimes referred to as the ____ relationship.
(Multiple Choice)
4.7/5
(30)
Which of the following code snippets denotes that the Rose class inherits from the Flower class?
(Multiple Choice)
4.8/5
(46)
Which of the following would be an appropriate name for a class used in an inventory application?
(Multiple Choice)
4.7/5
(27)
Which of the following code snippets denotes that the Kitchen class aggregates the Dish class?
(Multiple Choice)
4.9/5
(39)
Consider the following code snippet:
Public class Motorcycle extends Vehicle
{
Private Tire[] tires;
Private Engine anEngine;
) . .
}
Which of the following statements describing relationships between the Motorcycle, Tire, Engine and Vehicle classes is NOT correct?
(Multiple Choice)
4.9/5
(39)
Which of the following is NOT accomplished by using the import statement?
(Multiple Choice)
4.9/5
(36)
Which statement correctly describes the class relationship shown in this diagram? 

(Multiple Choice)
4.8/5
(30)
You have determined a need for an Employee class and a TemporaryEmployee class in your program. Which relationship is most appropriate between these classes?
(Multiple Choice)
4.7/5
(42)
In general, you need ____ when an object needs to remember another object between method calls.
(Multiple Choice)
4.9/5
(41)
Which of the following statements about associations between classes is true?
(Multiple Choice)
4.9/5
(37)
Consider the following code snippet:
Public class Purse
{
Private Coin[] coins;
) . .
}
This code is best described as an example of ____.
(Multiple Choice)
4.9/5
(42)
____ relationships come from the collaboration columns on the CRC cards.
(Multiple Choice)
4.8/5
(39)
Which of the following statements about packages is NOT correct?
(Multiple Choice)
4.9/5
(30)
Which of the following is the most important consideration when designing a class?
(Multiple Choice)
4.7/5
(36)
If you have parallel arrays or array lists of the same length which each store a part of what could be considered an object, ____.
(Multiple Choice)
4.9/5
(34)
A UML class diagram would be most useful in visually illustrating which of the following?
(Multiple Choice)
4.9/5
(36)
Showing 61 - 80 of 100
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)