Choose the correct answer:
Which UML term pair captures complementary ways of looking at a relationship?
The UML term pair that captures complementary ways of looking at a relationship is 'aggregation / composition'. Both terms describe types of associations between classes but differ in the degree of ownership and lifecycle dependency between the involved objects. Aggregation implies a weaker relationship where the parent class contains or is linked to other classes but does not strictly control their lifecycle (e.g., a university and its students). Composition, on the other hand, implies a stronger relationship where the parent class has full responsibility for the lifecycle of the associated classes (e.g., a house and its rooms). Understanding these relationships helps model systems more accurately in terms of object ownership and lifecycle management.
Choose the correct answer:
Consider the following diagram:

According to the diagram, which statement describes the property db?
In UML, a static property is one that belongs to the class itself rather than any instance of the class. In UML diagrams, static properties are denoted by underlining the property name.
Now, let's review the options:
A . There is no UML notation in the diagram that specifies whether the property db is a primary key. Primary keys are a database concept and UML does not have a standard way to denote them.
B . The property db is underlined, which indicates that it is a static property. This is the correct UML notation for depicting a class-level attribute.
C . There is no indication in the diagram that db is inherited from a superclass. Inherited properties typically are not underlined (unless they are also static), and there is no superclass shown in the diagram.
D . Underlining in UML does not signify importance or emphasis by the modeler, it indicates that a property is static.
Therefore, the answer is B: The property db is a static property. This is based on standard UML notation as outlined in the UML 2.5 Specification by the Object Management Group (OMG), which dictates that static members (attributes or operations) are underlined in class diagrams.
Choose the correct answer:
Which UML term pair captures complementary ways of looking at a relationship?
The UML term pair that captures complementary ways of looking at a relationship is 'aggregation / composition'. Both terms describe types of associations between classes but differ in the degree of ownership and lifecycle dependency between the involved objects. Aggregation implies a weaker relationship where the parent class contains or is linked to other classes but does not strictly control their lifecycle (e.g., a university and its students). Composition, on the other hand, implies a stronger relationship where the parent class has full responsibility for the lifecycle of the associated classes (e.g., a house and its rooms). Understanding these relationships helps model systems more accurately in terms of object ownership and lifecycle management.
Choose the correct answer:
In UML modeling, what is a Constraint?
In UML modeling, a constraint is defined as:
A . a condition that must be satisfied when it is evaluated
A constraint is a semantic condition or restriction expressed in natural language text or a machine-readable language for expressing constraints, such as OCL (Object Constraint Language). Constraints specify invariants that must hold for the system being modeled at all times. This means that whenever the constraint is evaluated, the condition it expresses must be satisfied (UML 2.5 specification, section 7.9).
The other options do not accurately define what a constraint is in the context of UML:
B . A condition that should be met depending on system operation -- This is not precise as constraints are not optional and do not depend on system operation; they are always applicable.
C . A condition that causes the state of the objects to change over time -- This describes a side effect, which is not the purpose of a constraint. A constraint is a condition that must always be met, not something that induces change.
D . A condition that constrains what can or cannot be put in a class diagram -- This is too broad and imprecise. Constraints apply to elements within the class diagram and are not about the content of the diagram itself.
Choose the correct answer:
Which statement is true about the following diagram?

The execution starts from activity A (as there's no incoming transition).
From A, there's only one outgoing transition leading to activity E.
Following the transition from E, the flow reaches activity C.
There are no further outgoing transitions from C, signifying the end of the valid trace.
Explanation of Why Other Options are Incorrect:
A . E waits for an Event:The diagram doesn't show an explicit wait event associated with activity E. While an event might trigger the initial start of the activity A, the provided trace (A, E, C) focuses on the control flow between the activities themselves.
B . E is always executed faster than B:There's no basis to establish a timing relationship between E and B based solely on the structure of the diagram. The order of execution is A, E, C, but their relative speeds cannot be determined from this information.
D . C waits for tokens on both incoming edges:Activity C has two incoming transitions, but the concept of waiting for tokens on both edges simultaneously doesn't apply here. Since the flow reaches C from activity E, only the transition from E provides the token needed to enable C's execution.
Trace vs. Path
It's important to distinguish between trace and path in an activity diagram:
Trace:A specific sequence of activity executions along a feasible path.
Path:A possible route through the activity diagram, which may or may not be a valid trace depending on the presence of decisions or loops.
In this case, the answer focuses on the valid trace A, E, C, which represents a confirmed sequence of activity executions based on the transitions in the diagram.
Reference
Verlene
7 days agoStephanie
18 days agoCherry
26 days agoShalon
1 month agoEsteban
1 month agoFelix
2 months agoOren
2 months agoGlenn
2 months agoCherri
2 months agoRoselle
3 months agoPolly
3 months agoFelix
3 months agoSheron
3 months agoArlene
4 months agoTrinidad
4 months agoMarge
4 months agoKatina
4 months agoGeorgiann
5 months agoJessenia
5 months agoAliza
5 months agoRhea
5 months agoOliva
6 months agoDan
6 months agoOwen
6 months agoLeota
8 months agoGilbert
9 months agoSalome
11 months agoMarvel
12 months agoGlory
1 year agoRosalia
1 year agoLuisa
1 year agoKristin
1 year agoMozell
1 year agoMerlyn
1 year agoShasta
1 year agoRemona
1 year agoHermila
1 year agoChantay
1 year agoHannah
1 year agoCecily
1 year agoMarshall
1 year agoDomingo
1 year agoJesse
1 year agoBette
2 years agoEvangelina
2 years agoCathrine
2 years agoAnnamae
2 years agoMarge
2 years agoMohammad
2 years agoAide
2 years agoElza
2 years agoLizette
2 years agoElden
2 years agoJavier
2 years ago