Exam 8: Class and Method Design

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

When a calling method passes a variable to the called method, the two exhibit content or pathological coupling.

(True/False)
4.8/5
(33)

The signature of a method is completely specified by the name of the method and the parameters that must be passed to the method.

(True/False)
4.9/5
(28)

A Case statement is an advanced form of an If statement.

(True/False)
4.9/5
(35)

Briefly discuss the procedure for verifying and validating class and method design.

(Essay)
4.7/5
(42)

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

(True/False)
4.9/5
(27)

Essentially, all OCL expressions are simply a declarative statement that evaluates to either being true or false.

(True/False)
4.9/5
(30)

A self-contained, encapsulated piece of software that can be plugged into a system is often referred to as a design a pattern.

(True/False)
4.8/5
(37)

Fan-out refers to _____.

(Multiple Choice)
4.9/5
(47)

What is method cohesion?

(Essay)
4.9/5
(36)

In an object-oriented system, changes can take place at the following level of abstraction.

(Multiple Choice)
4.9/5
(36)

Which of the following types of interaction coupling is "best?"

(Multiple Choice)
4.9/5
(30)

Method cohesion is concerned with the level of cohesion among the attributes and methods of a class.

(True/False)
4.8/5
(36)

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

(True/False)
4.8/5
(41)

Constraints can be written in either a natural language, a semiformal language, or a formal language such as ________________.

(Multiple Choice)
4.7/5
(40)

It is impossible for a subclass to inherit from more than one superclass.

(True/False)
4.8/5
(37)

What is the Object Constraint Language? Give an OCL example.

(Essay)
4.8/5
(34)

Pseudocode is useful for writing algorithm specifications.

(True/False)
4.9/5
(34)

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

(True/False)
4.8/5
(42)

Object-oriented systems have three general types of cohesion: _____, _____, and _____.

(Multiple Choice)
4.8/5
(35)

Mixed-role class cohesion is the worst type of class cohesion.

(True/False)
4.9/5
(36)
Showing 61 - 80 of 97
close modal

Filters

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