Exam 12: Object-Oriented Design

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

Which of the following code snippets denotes that the Kitchen class depends on the Stove class?

(Multiple Choice)
4.9/5
(38)

When using CRC cards, UML diagrams should be created ___.

(Multiple Choice)
4.8/5
(40)

Select a code segment to complete the Name class, so that it reflects a dependency relationship between Name and String. public class Name ___________________________

(Multiple Choice)
4.8/5
(33)

Which of the following code snippets denotes that the Kitchen class aggregates the Dish class?

(Multiple Choice)
4.9/5
(32)

Which of the following would be an appropriate name for a game-related class?

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(33)

____ is often described as the has-a relationship.

(Multiple Choice)
4.9/5
(32)

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

Which of the following is the most important consideration when designing a class?

(Multiple Choice)
4.8/5
(32)

A class (ClassOne) is considered to have a dependency on another class (ClassTwo) under which of the following conditions?

(Multiple Choice)
4.9/5
(42)

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

(Multiple Choice)
4.9/5
(28)

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

(Multiple Choice)
4.8/5
(34)

Consider the following code snippet: public class SailBoat extends Vessel { Private Engine[] engines; Private Sail mainsail; ) . . } Which of the following statements is NOT correct?

(Multiple Choice)
4.9/5
(42)

How does a UML diagram denote classes and their attributes and methods?

(Multiple Choice)
4.7/5
(36)

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.9/5
(41)

Which of the followings statements about class relationships is correct?

(Multiple Choice)
4.8/5
(37)

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.8/5
(38)

Which of the following statements about class attributes is true?

(Multiple Choice)
4.8/5
(40)

In general, you need ____ when an object needs to remember another object between method calls.

(Multiple Choice)
4.8/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
(42)
Showing 81 - 100 of 104
close modal

Filters

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