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

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)
5.0/5
(68)

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

(True/False)
4.9/5
(73)

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

(Essay)
4.7/5
(80)

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

(True/False)
4.9/5
(71)

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

(True/False)
4.9/5
(73)

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

Fan-out refers to _____.

(Multiple Choice)
4.9/5
(86)

What is method cohesion?

(Essay)
4.9/5
(76)

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

(Multiple Choice)
4.9/5
(84)

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

(Multiple Choice)
4.9/5
(71)

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

(True/False)
4.8/5
(85)

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

(True/False)
4.8/5
(86)

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

(Multiple Choice)
4.8/5
(86)

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

(True/False)
4.9/5
(86)

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

(Essay)
4.8/5
(78)

Pseudocode is useful for writing algorithm specifications.

(True/False)
4.9/5
(86)

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

(True/False)
4.9/5
(87)

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

(Multiple Choice)
4.8/5
(71)

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

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

Filters

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