In implementation hiding, the calling method needs to understand only the interface to the method
that is called and it need not know how the method works internally.
True
False - Answers True
Variables and constants are ____ within, or local to, only the method in which they are declared.
in scope
out of bounds
out of scope
limited - Answers in scope
When a data item is known to all of a program's modules, it is a ____data item.
scope
defined
local
global - Answers global
Programmers use the term ____ to describe any extra time and resources required by an operation.
black box
overhead
overload
cohesion - Answers overhead
Using implementation hiding means that the ____ is the only part of a method with which the
method's client interacts.
argument list
interface to the method
parameter list
internal detail - Answers interface to the method
____ refers to how the internal statements of a method serve to accomplish the method's purpose.
Coupling
Cohesion
Bonding
Binding - Answers Cohesion
____ is a measure of the strength of the connection between two program methods.
Coupling
Cohesion
Bonding
Binding - Answers Coupling
____ occurs when methods excessively depend on each other and makes programs more prone to
errors.
Late coupling
Loose coupling
Tight coupling
Weak coupling - Answers Tight coupling
____ occurs when methods do not depend on others.
Tight coupling
Loose coupling
Data coupling
Abstract coupling - Answers Loose coupling
Programmers refer to hidden implementation details as existing in a(n) ____________________.
black-box
white-box
clear-box
empty-box - Answers black-box
Which of the following is considered by the text to be the most important consideration when
designing a class?
A. Each class should represent an appropriate mathematical concept.
B. Each class should represent a single concept or object from the problem domain.