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
(37)
Correct Answer:
Verified

True

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

Free
(True/False)
4.7/5
(41)
Correct Answer:
Verified

False

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

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

False

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

(True/False)
4.9/5
(40)

A For statement simply performs some action.

(True/False)
4.8/5
(32)

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

(True/False)
4.9/5
(31)

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

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

(Multiple Choice)
4.8/5
(35)

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

(True/False)
4.9/5
(46)

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

(True/False)
4.9/5
(32)

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

(Multiple Choice)
4.8/5
(39)

What are the different ways to optimize an object system?

(Essay)
4.7/5
(43)

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)
4.9/5
(37)

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

(Multiple Choice)
4.9/5
(41)

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

(True/False)
4.8/5
(35)

What is class cohesion?

(Essay)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(40)

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

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

(True/False)
4.9/5
(45)

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

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

Filters

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