Exam 12: Object-Oriented Design

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

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

(Multiple Choice)
4.8/5
(36)

All smartphones are phones, but not all phones are smartphones.This type of relationship is best described by:

(Multiple Choice)
4.7/5
(50)

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

(Multiple Choice)
4.9/5
(38)

Consider the following code snippet: Consider the following code snippet:   Which of the following statements correctly describes the relationship between the Motorcycle and Tire classes? Which of the following statements correctly describes the relationship between the Motorcycle and Tire classes?

(Multiple Choice)
4.8/5
(38)

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. 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.

(Multiple Choice)
5.0/5
(46)

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

(Multiple Choice)
4.8/5
(40)

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

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

(Multiple Choice)
4.8/5
(44)

A Quiz class contains an array of Question objects.This is best described as an example of ____.

(Multiple Choice)
4.8/5
(30)

How many responsibilities is/are recommended by researchers on a CRC card?

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.7/5
(44)

Dependency between classes denotes that ____.

(Multiple Choice)
4.8/5
(43)

Consider the following code snippet: Consider the following code snippet:   This code is best described as an example of ____. This code is best described as an example of ____.

(Multiple Choice)
4.8/5
(37)

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

Which of the following can be used to record the behavior of classes?

(Multiple Choice)
4.9/5
(38)

If many classes of a program depend on each other, we say that ____.

(Multiple Choice)
4.7/5
(33)

Suppose you are developing a payroll application that computes and displays weekly paycheck amounts for various employees.As a result of the design phase, the partial Employee class below is developed.Select the method header that best completes the class, according to the method comments. Suppose you are developing a payroll application that computes and displays weekly paycheck amounts for various employees.As a result of the design phase, the partial Employee class below is developed.Select the method header that best completes the class, according to the method comments.

(Multiple Choice)
4.7/5
(40)

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

The final step of the design phase recommended by the textbook is to ____.

(Multiple Choice)
4.9/5
(28)

You have determined the need for a File class and a Folder class in your program.Which of the following would best describe the relationship between these classes?

(Multiple Choice)
4.8/5
(42)
Showing 61 - 80 of 104
close modal

Filters

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