Exam 8: Class and Method Design

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

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

(Multiple Choice)
4.9/5
(33)

What are the four opportunities for reuse identified in the text?

(Essay)
4.8/5
(44)

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

(True/False)
4.8/5
(33)

Like other problem domain models, the _____________, contracts, and method specifications in class and method design need to be verified and validated.

(Multiple Choice)
4.9/5
(30)

Dynamic binding refers to the ability of object-oriented systems to defer the data typing of objects to run time.

(True/False)
4.7/5
(38)

In terms of levels of abstraction, which of the following is at the lowest level relative to the rest?

(Multiple Choice)
4.8/5
(34)

When a method of one object refers to the inside hidden parts of another object, these methods are exhibiting _____ coupling.

(Multiple Choice)
4.8/5
(46)

What is class cohesion?

(Essay)
4.9/5
(36)

A method that combines two functions that use the same attributes to execute exhibits Communicational cohesion.

(True/False)
4.8/5
(35)

Coincidental is the worst type of method cohesion.

(True/False)
4.8/5
(30)

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

(Essay)
4.8/5
(33)

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

(True/False)
4.8/5
(35)

A class/object should only represent one thing, and a method should only solve a single task. This principle is often referred to as _____.

(Multiple Choice)
4.8/5
(34)

Use Structured English or pseudocode to write the logic for the process "register for a class" at your college or university. Focus on a single class, but consider the possible exceptions that may occur when you try to register for that class.

(Essay)
4.9/5
(41)

A derived attribute results from storing the value of a computation.

(True/False)
4.8/5
(30)

Constraints can only be written in either a semiformal language or a formal language.

(True/False)
4.9/5
(39)

Contracts contain a detailed algorithmic description of how the method is to work.

(True/False)
4.8/5
(44)
Showing 81 - 97 of 97
close modal

Filters

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