Exam 15: Components Reuse

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

When describing the component itself, the version number, copyright, performance, and security are part of ________.

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

A

How does component-based development help reuse?

Free
(Essay)
4.9/5
(33)
Correct Answer:
Verified

The most obvious, reliable, and effective mechanism for reuse is a component. Well-defined and well-designed components have one distinct advantage over any type of reuse: they come as packages or black boxes and are, largely, foolproof. This advantage, though, does not obviate the need for other kinds of reuse.

How do we model components?

Free
(Essay)
4.9/5
(43)
Correct Answer:
Verified

The standard UML icon is a box with two tabs, similar to a plug. Components, however, can also be represented by "stereotyped" boxes. A component can be modeled both as a black box that hides its internal structure, and as a white box that exposes that structure.
In black-box modeling, we represent the interfaces that the component supports as lines that end in a circle. The outside world can interact with the component only through these interfaces. In turn, if the component requires an external interface in its environment, the requirement is shown as a line ending in a half-circle. This arrangement is often called "ball and socket" because the interface provided by one component must fit into the "socket" provided by its "client."
In white-box modeling, the internal structure of the component is shown as a diagram inside the stereotyped box that represents the component. The communication between entities inside the box and outside entities takes place through ports, shown as small boxes that are situated on the borders of the component box. An "incoming" port delegates a provided interface to an object, or another component, inside the component. An "outgoing" port conveys requests by internal entities to the required interface of an outside component.

Explain the significance of components in the context of object-oriented development.

(Essay)
4.8/5
(47)

Explain how communications among components takes place.

(Essay)
4.7/5
(39)

Patterns are formed from repeated experience in solving problems.

(True/False)
4.9/5
(29)

________ is (are) the most obvious, the most reliable and the most effective mechanism for reuse.

(Multiple Choice)
4.8/5
(32)

Which of the following is NOTa reason for creating multiple interfaces?

(Multiple Choice)
4.8/5
(32)

Reuse in software development is an afterthought of the normal course of development.

(True/False)
5.0/5
(32)

________ is a mechanism by which multiple classes share one interface but implement that interface independently of each other or of the parent class.

(Multiple Choice)
4.8/5
(41)

Building products from well-tested components increases the costs of development.

(True/False)
4.8/5
(44)

The purpose of interface inheritance is to arrive at a subclass that ________.

(Multiple Choice)
4.8/5
(32)

Which of the following languages supports multiple inheritance?

(Multiple Choice)
4.8/5
(40)

A subclass may add ________ that do not exist in the superclass.

(Multiple Choice)
4.8/5
(41)

Compare and contrast components and objects.

(Essay)
4.8/5
(41)

The concept of inheritance is an abstraction that covers only similar concrete situations.

(True/False)
4.7/5
(40)

Describe implementation inheritance.

(Essay)
4.9/5
(29)

A component is language-specific.

(True/False)
4.8/5
(40)

Inheritance is an important mechanism in object-oriented technology.

(True/False)
4.9/5
(40)

Reuse can apply to any ________ that is required in software development.

(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 99
close modal

Filters

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