Font size
WorksheetsCS8592 - OOAD - UNIT II - QUIZ IV
Total questions: 15
Worksheet time: 11mins
A PC is composed of a motherboard, disk drives, and I/O devices. The PC is sold as a single unit without optional configurations. This example should be modeled as
Aggregation
Composition
Association
A travel package consists of airfare, hotel, and rental car reservations. This example should be modeled as
Composition
Association
Aggregation
Employees use our company cars. This example should be modeled as
Aggregation
Composition
Association
Which of the following is carried out for the detailed design process?
Both SRS and SAD are taken as input for the detailed design stage
Design alternatives are evaluated first and then Design is finalized
Detailed design is the output for the process
All of the mentioned
A design document is a complete engineering design specification composed of?
Software Architecture Document(SAD)
Detailed Design Document(DDD)
All of the mentioned
None of the mentioned
Which of the following statements about shared aggregations are true?
Shared aggregations are used to express an is-a relationship.
Chains of shared aggregation links may form a cycle..
The multiplicity of a shared aggregation may be ≥1.
A shared aggregation is shown by a solid-filled diamond on the end of an association line.
Association classes are used to ...
... model that the existence of one object depends on the existence of the association between two other objects.
... reduce the cardinality of associations.
... further specify associations.
Which of the following optional information can be given on an association between classes?
A small filled triangle near the association name to show in which way to "read" the name.
Name
An arrow at the end to show navigability.
Multiplicity at the end of an association.
Which visibilities can attributes and operations of classes have?
Protected
Private
Public
Friends
Package
You are given the clipping of a UML2 class diagram. Which of the following statements are true?
One object of A is associated with exactly one object of C and two objects of B.
One object of A may contain two objects of B.
One object of B may be associated with multiple objects of A.
If an instance of A is deleted, all contained instances of B are deleted as well.
The diamond near A is called composition.
How do you model the following situation with a UML2 class diagram:
On a blind date exactly two people take part. A person can take part in multiple blind dates. It is not sufficient to know a person to derive all his/her dates.
You are given the following clipping of a UML2 class diagram. Which of the following statements are true?
One tenant can rent two flats with one leasing contract.
One tenant can rent multiple flats with different leasing contracts.
One flat can be rented by multiple tenants with different leasing contracts.
One flat can be rented by multiple tenants with the same leasing contract.
Data types in UML ...
... can be primitive types and enumerations.
... have instances without identity (in contrast to classes)..
... can have attributes but no operations.
... are noted like classes with the keyword <<datatype>> (or another pre-defined type, e.g. <<enumeration>>).
A class diagram describes ...
shows the interaction view of a system.
shows the dynamic view of a system.
shows the practical view of a system.
shows the static view of a system.
You are given the following clipping of a UML2 class diagram. Which of the following statements are true?
One tenant can rent the same flat multiple times with different leasing contracts.
If a tenant dies (i.e. the tenant-object is deleted), all leasing contracts of the tenant are deleted.
One flat can be rented by multiple tenants with the same leasing contract.
One flat can be rented by multiple tenants with different leasing contracts.
