Exam 12: Object-Oriented Design
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
Which of the following statements about associations between classes is true?
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
D
____ relationships come from the collaboration columns on the CRC cards.
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
C
Consider the following code snippet: public class PowerBoat extends Vessel
{
Private Engine[] engines;
) . .
}
This code is best described as an example of ____.
Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
C
Classes often correspond to ____ in a requirements description.
(Multiple Choice)
4.8/5
(27)
Which of the following code snippets denotes that the Purse class depends on the Wallet class?
(Multiple Choice)
4.8/5
(44)
Which statement correctly describes the class relationship shown in this diagram? 

(Multiple Choice)
4.7/5
(36)
Which of the following code snippets denotes that the Fleet class aggregates the Taxi class?
(Multiple Choice)
4.9/5
(35)
You are designing a software solution for an automobile rental company. You have decided that the following nouns apply to the requirements: Auto, Customer, Address, Rental Contract, Mileage, Rental Date, Daily Rate, Total. Which of these should be represented as instance variables?
(Multiple Choice)
5.0/5
(33)
You are designing an application to support an automobile rental agency. Which of the following probably should NOT be represented as an object?
(Multiple Choice)
4.8/5
(41)
Given the following diagram showing class relationships:
What type of relationship is shown between Invoice and Product?

(Multiple Choice)
4.9/5
(33)
After you have identified a set of classes needed for a program, you should now ____.
(Multiple Choice)
4.8/5
(42)
Suppose you are developing a payroll application that computes and displays weekly paycheck amounts for various employees. As a result of the design phase, an Employee class is developed. In addition, the Payroll class is designed to store and process information for various employees. Select the code segment that best completes the Payroll class. public class Payroll ___________________________
(Multiple Choice)
4.7/5
(37)
Suppose that the invoice-printing application from section 12.3 needs to be enhanced by making it possible for class InvoicePrinter to store several invoices to be printed. Select the code segment that best illustrates reuse of the existing Invoice class for this purpose. public class InvoicePrinter ___________________________
(Multiple Choice)
4.8/5
(38)
Which of the following would be an appropriate name for a class used in an inventory application?
(Multiple Choice)
4.9/5
(43)
A Quiz class contains an array of Question objects. This is best described as an example of ____.
(Multiple Choice)
4.8/5
(42)
Given the following diagram showing class relationships:
What type of relationship is shown between BankAccount and Customer?

(Multiple Choice)
4.8/5
(41)
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
(45)
During the implementation phase, which of the following statements is true?
(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 104
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)