Final- Q11

¡Supera tus tareas y exámenes ahora con Quizwiz!

True or false. It is NOT possible to nest frames in a frame within a sequence diagram.(t/f)

false

In figure 18.6 on pg. 330, which message is the system message? makeNewSale Register's call to create Sale Sale's call to create LineItems None of the above

makeNewSale

A low cohesive object with many source lines of code probably collaborates with many other objects and all that interaction tends to also create high coupling. (t/f)

true

True of false. Patterns help to facilitate communication.(t/f)

true

True or false. UML class diagrams support showing template classes that are typically known as templates or parameterized types in many programming languages.(t/f)

true

Which one of the following is NOT true for an association? A binary relationship between two classes must be represented by two separate associations. A link between objects is an instance of an association between the object classes. An association must have either a name or role names at its ends. An association must have at least two ends. An association must have multiplicities at both ends.

A binary relationship between two classes must be represented by two separate associations.

Which of the following statements about UML dependencies are true? (MULT ANS) A dependency represents a transient relationship between class objects. When an object A creates another object B, a create dependency exists between the objects A and B. A dependency in UML should always be implemented in Java by defining a reference as a class member. If an object of class A is passed in as a parameter to a method defined in class B, then a dependency exists between class A and class B. A solid line with an arrow at the one end is used to depict all types of dependencies.

A dependency represents a transient relationship between class objects. When an object A creates another object B, a create dependency exists between the objects A and B. If an object of class A is passed in as a parameter to a method defined in class B, then a dependency exists between class A and class B.

To handle the logic (e.g., looping) required for a sequence being modeled, we can use frames with appropriate operators (e.g., loop for looping), which is formally called "sequence diagram fragments". Which one of the following statements about sequence diagram fragments is NOT true? Fragments can be nested. The alt fragment is used to show alternative interactions. The par fragment is used to show groups of interactions that can occur in parallel. A neg fragment describes interactions that are optional. A fragment can span multiple lifelines.

A neg fragment describes interactions that are optional.

Which one of the following is NOT a true statement about subsystem design? Note: While the architectural modeling is done to show static/dynamic relations among subsystems, the subsystem modeling shows the design of each subsystem. A subsystem design describes only the signatures of operations in a subsystem's interface. A subsystem design describes the internal detail of a design. A good subsystem design can commence after the subsystem interfaces are defined. A subsystem design describes how a subsystem discharges of its responsibilities. A subsystem design can consist of class diagrams and interaction diagrams that describe the inner workings of a subsystem.

A subsystem design describes only the signatures of operations in a subsystem's interface.

Communication diagrams work well for which of the following? UML as sketch Formal modeling Agile modeling environment All of the above

All of the above

With regard to the creator pattern, we should assign class B the responsibility of creating an instance of class A if which of the following conditions are true.(MULTIPLE ANSWERS) B records A B knows about A B closely uses A All of the above

B records A B closely uses A

When there are other design alternatives, the book suggests to take a look at what? Coupling Cohesion Both Neither

Both

Which of the following is true? In OO design, a pattern is a named and well-known problem which can be applied to new contexts. The problem "Who creates object X" is a knowing responsibility. The domain model illustrates software classes while the design model illustrates conceptual classes. Controller pattern decides what first object after UI layer should receive the message from UI layer.

Controller pattern decides what first object after UI layer should receive the message from UI layer.

When a class diagram is used for the purpose of representing a problem domain we call it a what? Domain class diagram Design class diagram Architectural class diagram System class diagram Deployment class diagram

Domain class diagram

What type of modeling are interaction diagrams used for? Dynamic Static

Dynamic modeling

Who are the four authors who wrote the "Bible" of design pattern books, often referred to as the GoF, "Gang-Of-Four". Erich Gamma Richard Helm Ralph Johnson Martin Fowler Craig Larman John Vlissides

Erich Gamma Richard Helm Ralph Johnson John Vlissides

Which of the following statements about GRASP is correct? (MULTIPLE ASNWERS) GRASP is a visual modeling tool just like UML GRASP is a methodology for object-oriented design based on responsibility-driven design GRASP consists of a collection of design patterns that help us think in terms of object-oriented design GRASP is not well suited for visual modeling

GRASP is a methodology for object-oriented design based on responsibility-driven design GRASP consists of a collection of design patterns that help us think in terms of object-oriented design

Which GRASP pattern could we use when we are concerned about change in the system and its impact? (multiple answers) Creator Information Expert High Cohesion Low Coupling

High Cohesion Low Coupling

Which of the following is true? (MULTIPLE ASNWERS) If A uses B closely, then A is a creator of B. Levels of coupling could be considered in isolation from Expert. A facade could be any concept which the designer chooses to represent the whole system or a subsystem. An interface-as-controller design increases the opportunity to reuse logic in future applications. A class which is partially responsible for interacting with relational databases has Low cohesion.

If A uses B closely, then A is a creator of B. A facade could be any concept which the designer chooses to represent the whole system or a subsystem.

Which of the following is NOT illustared in UML class diagrams? Classes Interfaces Dependencies Associations Lifelines

Lifelines

What is the acronym for UML's formal specification language for constraints? UCL (Unified Constraint Language) OCL (Object Constraint Language) DCL (Design Constraint Language) None of above

OCL (Object Constraint Language)

What does "RDD" stand for? Requirments-Driven Design Relation-Driven Design Responsibility-Driven Design Reasoning-Driven Design

Responsibility-Driven Design

See "calculating sale total" example on pg. 336 (under Figure 18.9). Which object should be responsible for calculating the sale total? Register Sale SaleLineItem None of the above

Sale

Interaction diagram" in a design model is a generalization used to refer to more specialized UML diagram types. What are those types? (MULT ANS) System diagram Sequence diagram State diagram Communication diagram System sequence diagram Use case diagram

Sequence diagram Communication diagram

When talking about the GRASP Controller pattern the book mentions two types of controllers, what are they? (MULTIPLE ASNWERS) Primary Controller Session Controller Facade Controller Intermediate Controller

Session Controller Facade Controller

We show a strong aggregation (composition) with which type of arrow in association? Solid arrow Solid diamond arrow Open arrow Dashed arrow

Solid diamond arrow

How are asynchronous messages shown in sequence diagrams? Filled arrow with solid line Filled arrow with dashed line Stick arrow with solid line Stick arrow with dashed line Dashed arrow with dashed line

Stick arrow with solid line

A use case realization describes how a particular use case is realized within the Design model in terms of what? (see Sec. 18.1) The related objects The associations between objects The collaborating objects None of the above

The collaborating objects

____ is the ability of one object to "see" or have a reference to another object. Transparency Visibility Navigability None of the above

Visibility

In the Low Coupling example in textbook, which of the following is a true statement as a solution in assigning responsibilities? (MULTIPLE ANSWERS) (See Sec. 17.12) We make Register call create on Payment so that the Sale class doesn't have to We remove the call to create() from Register to Payment and place that responsibility with Sale Because Register no longer has to know about Payment and only about Sale, instead of both, we have decreased the coupling of our objects None of the above

We remove the call to create() from Register to Payment and place that responsibility with Sale Because Register no longer has to know about Payment and only about Sale, instead of both, we have decreased the coupling of our objects

Which one of the following is a true statement about synchronous messages? When an object sends a synchronous message, it must wait for a response. A synchronous message is one sent by two objects at the same time. A synchronous message always starts with the letter s. Synchronous messages must always have a guard condition. A synchronous message is represented by a line with a half arrow head.

When an object sends a synchronous message, it must wait for a response.

How do we indicate a Singleton instance in a class diagram? <<Singleton>> With a '1' in the upper right-hand corner Just draw a single one None of the above

With a '1' in the upper right-hand corner

Which one of the following are true statements about UML stereo types? Select all correct answers. They are shown in curly braces ("{ }"). ordered and disjoint are examples of stereotypes. destroy and create (used on sequence diagrams) are examples of stereotypes. A stereotype represents a refinement of an existing modeling concept. A stereotype is defined within in a UML profile. The UML does not allow any user-defined stereotypes. The Object Management Group (OMG) provides many pre-defined stereotypes in the UML specification.

destroy and create (used on sequence diagrams) are examples of stereotypes. A stereotype represents a refinement of an existing modeling concept. A stereotype is defined within in a UML profile. The Object Management Group (OMG) provides many pre-defined stereotypes in the UML specification.

A sequence diagram describes only the interactions between objects; it does not describe what happens inside of an object. how an object state changes as a result of receiving an event. the interactions between objects and the activities that take place within an object. how an object is transformed by message. a detailed algorithm for a method.

only the interactions between objects; it does not describe what happens inside of an object.

A lifeline in a sequence diagram represents an instance. represents a class represents the body of a method. represents the exception handling mechanisms of an object represents associations.

represents an instance.


Conjuntos de estudio relacionados

Parts and Functions of the Musculoskeletal System

View Set

CBG.18 - Bacterial genetics 2 (Conjugation)

View Set

pharmacology maternity Hesi final evolve

View Set

Advanced Social Media & Analytics Exam One

View Set

CAE National Geographic 1 Sentence Transformations test 6

View Set