Structural Models

This quiz covers topics including the purpose and use of structural models, class diagrams (classes, associations, multiplicity notation, named associations, attributes, operations), generalization hierarchies (inheritance, arrowhead direction, attribute and operation inheritance), and aggregation associations (diamond notation, whole-part relationships)

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen

QUESTION OF
Views #: 29
Questions #: 13
Time: 15 minutes
Pass Score: 80.0%
Style
Mode

Purpose of Structural Models

1 pts
volume_mute

Structural models of software display:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Static vs. Dynamic Structural Models

1 pts
volume_mute

True or False: The static structural model of a system's components and the dynamic model of the system as it executes are always the same.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Simple Class Diagram

1 pts
volume_mute

The diagram below shows a simple UML class diagram with two classes and an association.

Patient Patient record 1 1

What does the "1" annotation at each end of the association line indicate?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Multiplicity Notation

2 pts

Match each multiplicity notation to its correct meaning in a UML class diagram.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Notation

1
1..*
*
1..4

Meaning

An exact number of objects is involved — in this example, between 1 and 4 objects
Exactly one object is involved in the association
One or more objects are involved (at least one, but no upper limit)
An indefinite number of objects may be involved (zero or more)
note_alt Add notes
flag Flag

Correct Answer

Explanation

Named Associations

1 pts
volume_mute

In a UML class diagram, associations can be given names. What is the purpose of naming an association?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading the Mentcare Class Diagram

1 pts
volume_mute

Study the class diagram below showing classes and associations in the Mentcare system.

Consultant referred-to 1 1..* Patient Condition 1..* 1..* diagnosed-with General practitioner 1..* 1 referred-by Consultation 1..* 1..* attends Medication 1..* 1..* prescribes Treatment 1..* 1..* prescribes Hospital Doctor 1..* 1..4 involves

According to this class diagram, what does the multiplicity 1..4 on the association between Consultation and Hospital Doctor mean?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Three Sections of a Detailed Class Box

2 pts

The diagram below shows a UML class box with full detail for a Consultation class.

Consultation Doctors Date Time Clinic Reason ... New ( ) Prescribe ( ) ...

Match each section of the UML class box to what it contains.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Section

Top section
Middle section
Bottom section

Contains

The operations (methods) associated with the object class — the functions the class can perform
The name of the object class
The attributes of the class — the object's characteristics, optionally with their types
note_alt Add notes
flag Flag

Correct Answer

Explanation

Class Diagrams vs. Semantic Data Models

1 pts
volume_mute

True or False: At a high level of detail, UML class diagrams look like semantic data models used in database design — both show entities, their attributes, and the relations between them.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Generalization — Purpose

1 pts
volume_mute

Generalization in object-oriented modeling is a technique used to:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Generalization Hierarchy

1 pts
volume_mute

The diagram below shows a UML generalization hierarchy for doctor types in the Mentcare system.

Doctor Hospital doctor General practitioner Consultant Team doctor Trainee doctor Qualified doctor

In this UML generalization hierarchy, which direction does the arrowhead point?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Inheritance of Attributes and Operations

1 pts
volume_mute

True or False: In a generalization hierarchy, the attributes and operations of a higher-level class are also associated with all lower-level subclasses — subclasses inherit from their superclasses and add more specific attributes and operations of their own.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Generalization and OO Languages

1 pts
volume_mute

In object-oriented languages such as Java, generalization as modeled in a UML class diagram is implemented using:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Aggregation — Definition and Notation

1 pts
volume_mute

The diagram below shows an aggregation association in a UML class diagram.

Patient record Patient Consultation 1 1 1 1..*

In UML, the diamond shape on an aggregation association is placed next to which class, and what does aggregation mean?

note_alt Add notes
flag Flag

Correct Answer

Explanation