Exam 8: Class and Method Design

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

Functional method cohesion is the "best" type of method cohesion.

Free
(True/False)
4.8/5
(89)
Correct Answer:
Verified

True

A pre-condition is a constraint that must be met after the method executes.

Free
(True/False)
4.8/5
(86)
Correct Answer:
Verified

False

High levels of inheritance coupling in a system are always good and desirable.

Free
(True/False)
4.8/5
(70)
Correct Answer:
Verified

False

Invariants model constraints that must always be true for all instances of a class.

(True/False)
4.9/5
(88)

A For statement simply performs some action.

(True/False)
4.8/5
(85)

Invariants are a type of constraints captured in object-oriented design

(True/False)
4.9/5
(73)

Written documents that include explicit instructions on how to write the code to implement the method are called method specifications.

(True/False)
4.9/5
(74)

A class has an attribute in which a range of values has a semantic meaning. This class has _____ connascence.

(Multiple Choice)
4.8/5
(68)

You should try to maximize the cohesion within an encapsulation boundary and minimize the coupling between the encapsulation boundaries.

(True/False)
4.9/5
(80)

There are only two different types of constraints typically captured in object-oriented design: preconditions and postconditions.

(True/False)
4.9/5
(78)

When a global data area exists outside individual objects, the resulting system has _____ interaction coupling.

(Multiple Choice)
4.7/5
(90)

What are the different ways to optimize an object system?

(Essay)
4.7/5
(82)

Why is it necessary for an analyst to detail the specifications for the individual classes and methods? What techniques are useful for doing this documentation?

(Essay)
5.0/5
(72)

There are three different types of constraints typically captured in object-oriented design: preconditions, postconditions, and _____________.

(Multiple Choice)
4.9/5
(68)

You should maximize connascence within an encapsulation boundary and minimize connascence between the encapsulation boundaries.

(True/False)
4.8/5
(74)

What is class cohesion?

(Essay)
4.9/5
(75)

_____ suggests that only the information required to use an object should be available outside the object.

(Multiple Choice)
4.9/5
(88)

The order of the code in a method is critical for the method to execute correctly. This method has position connascence.

(True/False)
4.8/5
(80)

A Case statement in Structured English has several mutually exclusive branches.

(True/False)
4.9/5
(88)

Polymorphism is the mechanism that combines the processes and data into a single object.

(True/False)
4.8/5
(86)
Showing 1 - 20 of 92
close modal

Filters

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