Exam 12: Object-Oriented Design

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

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? 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)

In a UML diagram, aggregation is denoted by ____.

(Multiple Choice)
4.8/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)

____ is often described as the is-a relationship.

(Multiple Choice)
4.9/5
(40)

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
close modal

Filters

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