Exam 12: Object-Oriented Design

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following statements about associations between classes is true?

Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
Verified

D

____ relationships come from the collaboration columns on the CRC cards.

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

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:
Verified

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? 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: Given the following diagram showing class relationships:   What type of relationship is shown between Invoice and Product? What type of relationship is shown between Invoice and Product?

(Multiple Choice)
4.9/5
(33)

____ is often described as the is-a relationship.

(Multiple Choice)
4.9/5
(39)

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)

Dependency between classes denotes that ____.

(Multiple Choice)
4.8/5
(39)

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: Given the following diagram showing class relationships:   What type of relationship is shown between BankAccount and Customer? 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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)