Exam 12: Object-Oriented Design

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

Which of the following code snippets denotes that the Pen class depends on the Ink class?

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

C

Which of the following statements will correctly put the Auto class into a package named VehiclePkg?

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

C

Given the following diagram showing class relationships: Given the following diagram showing class relationships:   What type of relationship is shown between LineItem and Product? What type of relationship is shown between LineItem and Product?

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

C

Which of the following most likely indicates that you have chosen a good name for your class?

(Multiple Choice)
5.0/5
(28)

In a UML diagram, the relationship symbol shown below denotes ____. In a UML diagram, the relationship symbol shown below denotes ____.

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(33)

When using the CRC method, if you determine that a class cannot carry out a particular task by itself and needs the help of another class to complete the task, you should ____.

(Multiple Choice)
4.8/5
(33)

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
(40)

Consider the following code snippet: Public class Motorcycle { Private Tire[] tires; ) . . } This code is best described as an example of ____.

(Multiple Choice)
4.9/5
(40)

Why is it generally considered good practice to minimize coupling between classes?

(Multiple Choice)
4.9/5
(31)

Which of the following statements is correct?

(Multiple Choice)
4.9/5
(30)

Which of the following code snippets denotes that the Purse class depends on the Wallet class?

(Multiple Choice)
4.8/5
(41)

Aggregation denotes that ____.

(Multiple Choice)
4.8/5
(32)

In a UML diagram, the relationship symbol shown below denotes ____. In a UML diagram, the relationship symbol shown below denotes ____.

(Multiple Choice)
4.8/5
(39)

A CashRegister class contains an array list of Coin objects. This is best described as an example of ____.

(Multiple Choice)
4.7/5
(38)

A/an ____ represents a set of objects with the same behavior.

(Multiple Choice)
5.0/5
(30)

When designing classes, if you find classes with common behavior you should ____.

(Multiple Choice)
4.8/5
(36)

During the implementation phase, which of the following statements is true?

(Multiple Choice)
4.8/5
(43)

After you have identified a set of classes needed for a program, you should now ____.

(Multiple Choice)
4.8/5
(36)

The textbook recommends a five-part program development process consisting of the following activities: I Use UML diagrams to record class relationships. II Gather requirements. III Implement the program. IV Use CRC cards to identify classes. V Use javadoc to document method behavior. Which is the correct order in which these activities should be completed?

(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 100
close modal

Filters

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