Upr 4 - UML Tests

19
Beginner Level QUESTION: 1 What does an association specify? A. links between associated types B. relationship among models C. tuples that are not links D. links between instances of untyped classes E. links between instances of associated types Answer: E QUESTION: 2 What is true of an interaction? A. An interaction always contains states and transitions. B. An interaction can be used as types for ports. C. An interaction is defined by a use case. D. The semantics of an interaction are defined by event traces. Answer: D QUESTION: 3 What can be captured by use cases? (Choose two) A. changes in state over time of the system B. data and control flow of the system C. user-interface specification of the system D. requirements of the system E. behaviors offered by the system Answer: D,E QUESTION: 4 What does the symbol represent in UML 2.0 activity diagrams? A. control node B. behavior C. state

Transcript of Upr 4 - UML Tests

Page 1: Upr 4 - UML Tests

Beginner Level

QUESTION: 1

What does an association specify?A. links between associated typesB. relationship among modelsC. tuples that are not linksD. links between instances of untyped classesE. links between instances of associated types

Answer: E

QUESTION: 2

What is true of an interaction?A. An interaction always contains states and transitions.B. An interaction can be used as types for ports.C. An interaction is defined by a use case.D. The semantics of an interaction are defined by event traces.

Answer: D

QUESTION: 3

What can be captured by use cases? (Choose two)A. changes in state over time of the systemB. data and control flow of the systemC. user-interface specification of the systemD. requirements of the systemE. behaviors offered by the system

Answer: D,E

QUESTION: 4

What does the symbol represent in UML 2.0 activity diagrams?

A. control nodeB. behaviorC. stateD. object nodeE. activityF. action

Answer: D

Page 2: Upr 4 - UML Tests

QUESTION: 5

Let us denote sending of p as !p and receiving p as ?p. Which trace defines the interactionN in the exhibit?

A. <!q, !p, ?p, ?q>B. <!p, ?p, !q, ?q>C. <!p, !q, ?q, ?p>D. <!p, ?q, !q, ?p>

Answer: C

QUESTION: 6

What constraint applies to a stop in a UML interaction diagram?A. No other event occurrences may appear below a stop on a given lifeline in a simple interaction. B. If there is a stop on one lifeline, there should be stops on all other lifelines within an interaction.C. Only one stop may occur in one interaction.D. If one lifeline has a stop in one interaction, it should have stops in every interaction that it appears.

Answer: A

QUESTION: 7

Which arrowhead shows that the message represents an operation call, rather than a signal, in UML 2.0?

Answer: A

QUESTION: 8

When a customer uses a service to order books, the service contacts a commercial credit card validation service, an address verification service, and an internal client database. Assuming the Order Books process is modeled as one use case at the system level, which actors would there be?A. Customer, Client DatabaseB. Customer, Credit Card Validation Service, Address Verification Service, Client DatabaseC. Customer, Credit Card Validation ServiceD. Customer

Page 3: Upr 4 - UML Tests

E. Customer, Credit Card Validation Service, Address Verification Service

Answer: E

QUESTION: 9

Which element in the exhibit denote a lifeline?

A. b:C2B. C1C. qD. pE. M

Answer: E

QUESTION: 10

How many of the arrows in the exhibit must provide values before the round-cornered rectangle can start?

A. oneB. twoC. threeD. none

Answer: C

QUESTION: 11

Ten employees in a department can submit an expense form to have their expenses repaid. The manager is required to approve the expense forms. How many actors have we described?A. 2 actorsB. 10 actorsC. 0 actorsD. 12 actorsE. 1 actorF. 11 actors

Answer: A

Page 4: Upr 4 - UML Tests

QUESTION: 12

What is a selector of a lifeline?A. a specific lifeline that selects a resource from a resource poolB. a scheduler that chooses the next lifeline on which to runC. an expression selecting one out of a set; a general indexing mechanismD. a construct to select one lifeline out of all the lifelines in the diagram

Answer: C

QUESTION: 13

What does the symbol in the exhibit represent inside UML 2.0 activity diagrams?

A. behaviorB. stateC. actionD. activityE. object node

Answer: C

QUESTION: 14

What is true about every named element that is a member of a namespace?A. It can be distinguished from other members in the namespace.B. It is identified by its name within the namespace.C. It is owned by the namespace.D. It has one unique name within the namespace.

Answer: A

QUESTION: 15

What are some of the important semantics of packages? (Choose three)A. The public contents of a package are accessible outside the package.B. If a package is removed from a model, the owned contents are removed.C. If a package is removed from a model, the owned contents are reassigned.D. An element may be owned by at most one package.E. The public contents of a package are not accessible outside the package.F. A class may be owned by multiple packages.

Answer: A, B, D

QUESTION: 16

What is true about constraints in UML 2.0? (Choose two)A. can be applied to themselves

Page 5: Upr 4 - UML Tests

B. cannot be namedC. must be true to be satisfiedD. can result in any number of possibilitiesE. can be named

Answer: C, E

QUESTION: 17

What about event order is true for simple interactions? (Choose two)A. Events are ordered from top to bottom of a lifeline in a simple sequence diagram.B. Events are ordered from top to bottom in a sequence diagram.C. The start event of an execution occurrence will coincide in time with the event representing the call of that operation.D. The send event of a complete message comes before the receive event of the same message.E. When messages represent operation calls, their sending and receiving events coincidein time.

Answer: A, E

QUESTION: 18

There is an element identified as r in the exhibit. What does this element describe in a UML 2.0 interaction diagram?

A. found message, found by bB. lost message originating from bC. timing signal from bD. synchronous message to the environment of RE. asynchronous message to the environment of R

Answer: D

QUESTION: 19

What shapes normally represent a use case? (Choose three)

Answer: A

Page 6: Upr 4 - UML Tests

QUESTION: 20

What statements are true about interfaces? (Choose two)A. A classifier may realize only one interface, but an interface may be realized by multiple classifiers.B. A classifier may realize more than one interface, but an interface may be realized by only one classifier.C. Interfaces are not directly instantiable.D. A classifier may realize more than one interface, and an interface may be realized by different classifiers.E. Interfaces are directly instantiable.

Answer: C, D

Intermediate Level

QUESTION: 1

To what does an internal structure of a class refer? A. the inheritance structure of that class B. the set of nested classifiers of that class C. the set of structural features of that class D. class and associations owned by that class E. the decomposition of that class in terms of interconnected parts

Answer: C

QUESTION: 2

What statements are true about a computer structure? (Choose two) A. Collaborations are structured classifiers B. A structured classifier is also an encapsulated classifier C. Structured classifier cannot contain instances of structured classifier D. Destroying an instance of a structured classifier normally destroys instances of its parts E. The behavior of a structured classifier must be completely defined through the collaboration of owned or referenced instances

Answer: D

QUESTION: 3

An encapsulated classifier is characterized by which fact? A. has an encapsulation shell B. can own one or more ports C. hides information from other classifiers D. acts as a package and can own one or more classifiers

Answer: C

Page 7: Upr 4 - UML Tests

QUESTION: 4

What interface restrictions does a port have? A. multiple required interfaces or multiple provided interfaces B. multiple provided interfaces or multiple required interfaces C. equal number of provided interface and required interfaces D. exactly one provided interface or exactly one required interface E. exactly one required interface and exactly one provided interface

Answer: D

QUESTION: 5

What is an invocation action on a port used for? A. sending a message to that port B. receiving a message to that port C. creating a link and attach it to that port D. relaying the invocation via links connected to that port E. invoking the behavior of the classifier that owns the port

Answer: A

QUESTION: 6

What is NOT a purpose of a port owned by a classifier? A. servers as an end point for connectors B. specifies an association to the classifier C. hides the internals of that classifier from other classifiers D. provides a distinct point of interaction between the classifier and its environment

Answer: B

QUESTION: 7

Which is true of a provided interface associated with a port? A. represents an interface that must be defined within the classifier that owns the port B. identifies the services that the object owning the port expects of objects connected via that port C. identifies the services that the object owning the port can offer to other objects connected via that port D. represents an interface that must be defined in the same package in which the classifier owning the port is defined

Answer: C

QUESTION: 8

What does the composite structure notation in the exhibit mean?

Page 8: Upr 4 - UML Tests

A. Class C has internal structure B. Object c1 is a kind of component C. Port p is connected to an object called F D. Port p realizes the features defined by interface F E. Port p required the feature defined by interface F

Answer: E

QUESTION: 9

Which list contains only connectable elements? A. port and connector end B. behavior, port and property C. connector end, port and part D. property, port and parameter E. behavior, connector end, and port

Answer: A

QUESTION: 10

What is NOT true about a roles and role bindings? A. A role binding is an association B. The same object may play roles in multiple collaborations C. A role binding maps connectable elements to a role in a collaboration occurrence D. The same connectable elements may be bound to multiple roles in a single collaboration occurrence E. A role typed by an interface specifies a set of features required by a participant in collaboration

Answer: D

QUESTION: 11

What does the composite structure exhibit show?

A. The diagram is not valid B. The two F interfaces must come from different packages C. Requests for behavioral features of interface F through ports p1 and p2 can be distinguished D. Requests for behavioral features of interface F through ports p1 and p2 will always result in the same behavior

Answer: C

Page 9: Upr 4 - UML Tests

QUESTION: 12

Refer to the exhibit. What is the significance of the fact that the Administrator interface symbol extends downward rather than leftward?

A. There is no significance B. The interface cannot be provided via a port C. The interface does not require a delegation connector D. The interface is not publicly visible on the component E. The interface is primary interface for the component F. The interface is the primary provided interface for the component

Answer: A

QUESTION: 13

Refer to the exhibit. How many interfaces does the Customer Service component make visible to its clients?

B. 1 C. 2 D. 3 E. 4

Answer: D

QUESTION: 14

What best describes the distinction between a delegation connector and an assembly connector? A. A delegation connector can be used to model the internals of a component, while an assembly connector cannot B. Assembly connectors provide white box views of components, while delegation connectors provide black box views C. An Assembly connector connects two components while a delegation connector connects the internal contract of a component with its external parts D. An Assembly connector connects the required interface or required port of one component with the provided interface or provided port of another component, while a delegation connector connects the external contract of a components with its internal parts

Answer: D

Page 10: Upr 4 - UML Tests

QUESTION: 15

What best describes the semantics modeled by the exhibit?

A. This is an illegal diagram B. The OrderEntity component is part of the internals of the Invoicer component C. The Invoicer has a complex connector that connects the GenerateInvoice interface with the Order Interface D. The Invoicer has a complex port that provides the interface GenerateInvoice and requires the interface Order

Answer: D

QUESTION: 16

What most accurately describes the semantics modeled by the exhibit?

A. HeaderGenerator and LineItemGenerator realize Invoicer B. Invoicer realized HeaderGenerator and LineItemGenerator C. HeaderGenerator and LineItemGenerator are Invoicer ports D. An Invoicer component is composed of a HeaderGenerator component and a LineItemGenerator compnent

Answer: C

QUESTION: 17

How can the internals of a component be presented? A. using a complex component connector B. component provides port or a component requires port C. in a compartment of the component box or a component required port D. in a compartment of the component box or via boxes nested within the component box

Answer: D

QUESTION: 18

Which must be true in order to use a delegation connector to connect two components? A. The components must have complex ports B. One component must be a subtype of the other C. The components must be related to each other via a dependency

Page 11: Upr 4 - UML Tests

D. One component must be part of internal realization of the other components

Answer: D

QUESTION: 19

Assume component A provides an interface P and required an interface R. In order for a component B to be substituted for component A, what must be true? A. Component must be related to each other via a dependency B. The interface that A requires must be type conformant with respect to the interface that B provides C. The interface that B requires must be type conformant with respect to the interface that A provides D. The interface that B requires must be type conformant with respect to the interface that A requires, and the interface that B provides must be type conformant with respect to the interface that A provides

Answer: D

QUESTION: 20

A component may legally participate in which relationship(s) A. dependencies B. associations and generalizations C. dependencies and generalizations D. dependencies, associations, and generalizations

Answer: D

High Level

QUESTION: 1

What is the correct interpretation for the multiplicities in the exhibit?

A. each Company has one job, where each job has one employee B. each job is foe one employer and one employee, each Company has any number of employees and each person has any number of employers C. each Person has at most one job for any number of Company objects and each Company has at most one job for any number of Person objects D. each job has any number of employers and any number of employees, each Company has any number of employees, and each Person has any number of employees, and each Person has any number of employers.

Answer: B

Page 12: Upr 4 - UML Tests

QUESTION: 2

An association class possesses the properties of which elements? (Choose two) A. class B. interface C. constraint D. expression E. association

Answer: A, E

QUESTION: 3

What is a power type? A. classifier containing a very large number of instances B. classifier whose instances are objects of another classifier C. classifier whose instances are operations of another classifier D. classifier whose instance are subclasses of another classifier

Answer: D

QUESTION: 4

How is power type indicated in a diagram? A. as a classifier labeled <<power Type>> B. as an association line labeled <<power Type>> C. as a generalization set labeled <<power Type>> D. as a generalization set labeled with a colon followed by a classifier name E. as a generalization set labeled with a colon followed by the label <<power Type>>

Answer: D

QUESTION: 5

In the exhibit, how many links are created by default when an instance of A is created?

A. two B. four C. eight D. none

Answer: B

QUESTION: 6

What does a collaboration occurrence describe? A. a particular aspect of a collaboration

Page 13: Upr 4 - UML Tests

B. an object that is an instance of a collaboration C. a collaboration that contains a set of actual instances (as opposed to roles) D. the instantiation of the pattern specified by the corresponding collaboration.

Answer: D

QUESTION: 7

Which stereotype is used on a dashed arrow joining an instance value to a constructor? A. <<new>> B. <<made>> C. <<create>> D. <<construct>> E. <<initialize>>

Answer: C

QUESTION: 8

What is NOT possible when a classifier receives a request via one of its ports? A. A new port is created on the classifier B. A behavior of the classifier is invoked C. The request is forwarded to a part of the classifier. D. The request does not trigger any behavior and is not forwarded. E. The port routes the request to one of a number of parts depending on the content of the request.

Answer: D

QUESTION: 9

What does the composite structure notation show in the exhibit?

A. P is a hidden port B. p is a behavior port C. p is a port providing a system service. D. p is a port on a part of composite C, which is not shown.

Answer: B

QUESTION: 10

What does a port specification on a trigger do? A. send a request to a port B. create a new port after a classifier has been instantiated C. restrict the tigger to events arriving through a specific port D. delay the creation of the parts of an encapsulated classifier until a specified request is received

Answer: A

Page 14: Upr 4 - UML Tests

QUESTION: 11

What is wrong with the collaboration occurrence shown in the exhibit?

A. The <<role>> keywords are missing. B. The <<occurrence >> key is missing. C. Client and Server role names should be underlined. D. Role bindings should be represented by dashed lines E. The collaboration occurrence name should be underlined.

Answer: D

QUESTION: 12

When a component is deleted, what happens to objects in a component’s namespace? A. objects are deleted B. objects continue to exist C. only those objects that participate in shared aggregations are retained D. contents of the component’s namespace are promoted to its super class

Answer: A

QUESTION: 13

An employee inadvertently removed all of the owned Members of the new Booster Motor component from his company’s development repository. The next day, the manager was unable to find some piece of the Booster Motor component’s specification. What pieces could the manager no longer find? (Choose two) A. failure mode use cases B. the component repository C. test scripts for the rocket sled simulation D. the launch assembly housing the Booster MotorE. the component's is indirectly instantiated attribute

Answer: A,B

QUESTION: 14

By what means can a design document be associated with the component it describes? (Choose three) A. import B. inheritance C. ownership D. dependency E. power types F. association end subsets

Answer: C

Page 15: Upr 4 - UML Tests

QUESTION: 15

What characteristics of components best enable them to be used to represent diverse and “aspects” of information processing environments? A. black-box semantics B. ports, parts and interfaces C. duality of association ends and attributes D. ownership of potentially large numbers of model elements

Answer:

QUESTION: 16

What happens to the exception from a Raise Exception Action when used in a model that has no exception parameters declared? A. ignored B. handled by a default handler C. appended to an exception log D. sent to the “Exception Manager” object E. propagated to an enclosing protected node, if any

Answer:

QUESTION: 17

Which symbol depicts an Accept Event Action?

Answer: A

QUESTION: 18

Which situations would result in errors when executing a Reclassify Object Action on an object? (Choose two) A. No new classifiers are supplied. B. A new classifier is an abstract class C. The old and new classifiers are identical. D. All classifiers are removed from the object. E. A new classifier already classifiers the object. F. An old classifier does not already classify the object.

Answer: B, E

QUESTION: 19

Which action does NOT require classifiers as static inputs? A. Read Extent Action

Page 16: Upr 4 - UML Tests

B. Create Object Action C. Reclassify Object Action D. Start Owned Behavior Action E. ReadlsClassified object Action

Answer: D

QUESTION: 20

Which action can continue to be enabled after it executes? A. Reply Action B. Read Extent Action C. Accept Event Action D. Broad Cast Signal Action E. Start Owned Behavior Action

Answer: C