Exam 8: Class and Method Design

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

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

(True/False)
4.8/5
(43)

Class cohesion addresses the cohesion within each individual method of a class.

(True/False)
4.8/5
(29)

_____ means having the ability to send the same message to different objects, which can be interpreted differently by different objects.

(Multiple Choice)
4.9/5
(37)

What are the two types of coupling in object-oriented systems?

(Multiple Choice)
4.8/5
(44)

Essentially, all OCL expressions are simply a declarative statement that evaluates to either being true or false. If the expression evaluates to true, then the constraint has been _______________.

(Multiple Choice)
4.7/5
(40)

Using an attribute to store the value of a computation is the use of a derived attribute.

(True/False)
4.8/5
(33)

A listing of the items that trigger the functionality in the program is known as events.

(True/False)
4.9/5
(32)

Many project teams are too quick to jump into writing code for classes without first designing them.

(True/False)
4.9/5
(27)

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

Describe the concept of inheritance. How does this impact the development of object-oriented systems?

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

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

(True/False)
4.8/5
(41)

UML's Object Constraint Language is a formal language.

(True/False)
4.9/5
(49)

Clicking a mouse can be an event.

(True/False)
4.8/5
(40)

The audience for pseudocode is the _____.

(Multiple Choice)
4.8/5
(45)

Method signatures, in conjunction with frameworks, class libraries and design patterns, offer excellent opportunities for reuse.

(True/False)
4.8/5
(38)

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

(True/False)
4.8/5
(41)

What is coupling? Is this desirable or undesirable in a system? Why?

(Essay)
4.9/5
(38)

One of inheritance abuses in Object-oriented design is the inheritance was used to implement an association relationship.

(True/False)
4.8/5
(41)

Fan-out refers to the number of attributes passed by one object to another.

(True/False)
4.7/5
(37)
Showing 21 - 40 of 97
close modal

Filters

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