Object-Oriented Design using the UML

This quiz covers the object-oriented design process using the UML, including system context and interaction models, use case descriptions, architectural design, object class identification, design models (structural and dynamic), sequence diagrams, state machine models, and interface specification - all illustrated through the wilderness weather station example

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

QUESTION OF
Views #: 16
Questions #: 15
Time: 10 minutes
Pass Score: 80.0%
Style
Mode

Software Design and Implementation

1 pts
volume_mute

Which of the following best describes the relationship between software design and implementation?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Five Stages of OO Design

1 pts
Please drag and drop the options to sort them

To develop a system design from concept to a detailed object-oriented design, five key activities must be carried out. Arrange them in the correct order.

Develop design models
Understand and define the context and external interactions with the system
Specify interfaces
Identify the principal objects in the system
Design the system architecture
note_alt Add notes
flag Flag

Correct Answer

Explanation

System Context vs Interaction Model

1 pts

System context models and interaction models present complementary views of the relationships between a system and its environment. Match each model type to its correct description.

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

Model Type

Interaction model
System context model

Description

A structural model that demonstrates the other systems in the environment of the system being developed
A dynamic model that shows how the system interacts with its environment as it is used
note_alt Add notes
flag Flag

Correct Answer

Explanation

Weather Station System Context

1 pts
volume_mute

The diagram below shows the system context for a wilderness weather station. Based on this context, which systems are in the environment of each weather station? Select ALL that apply.

Control system Weather information system Weather station Satellite 1 1 1 1..n 1 1..n 1 1 1 1..n
note_alt Add notes
flag Flag

Correct Answer

Explanation

Report Weather Use Case - Fields

1 pts

The 'Report weather' use case for a weather station system is described in a structured format. Match each field of the use case description to its correct content.

Weather information system Report weather Report status Control system Restart Shutdown Reconfigure Powersave Remote control

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

Use Case Field

System
Response
Use case
Stimulus
Actors
Comments

Content

Weather station
Report weather
Weather information system, Weather station
The weather information system establishes a satellite communication link with the weather station and requests transmission of the data
The summarized data is sent to the weather information system
Weather stations are usually asked to report once per hour, but this frequency may differ from one station to another and may be modified in future
note_alt Add notes
flag Flag

Correct Answer

Explanation

Weather Station High-Level Architecture

1 pts
volume_mute

The high-level architecture of the weather station software is composed of six independent subsystems that communicate via a shared Communication link. Which of the following are the six subsystems? Select ALL that apply.

<<subsystem>> Fault manager <<subsystem>> Configuration manager <<subsystem>> Power manager Communication link <<subsystem>> Communications <<subsystem>> Data collection <<subsystem>> Instruments
note_alt Add notes
flag Flag

Correct Answer

Explanation

Three Approaches to Object Class Identification

1 pts

As object-oriented design evolved, several approaches for identifying object classes were suggested. Match each approach to its correct description.

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

Approach

Tangible entities approach (Wirfs-Brock et al. 1990)
Grammatical analysis (Abbott 1983)
Scenario-based analysis (Beck and Cunningham 1989)

Description

Use a grammatical analysis of a natural language description of the system; objects and attributes are nouns, operations or services are verbs
Use tangible things in the application domain such as roles, events, interactions, and locations as candidate objects
Identify and analyze various scenarios of system use; each scenario is analyzed to identify the required objects, attributes, and operations
note_alt Add notes
flag Flag

Correct Answer

Explanation

Weather Station Object Classes

1 pts

Five object classes are identified for the weather station system. Classify each object class as either an Application domain object (reflecting tangible hardware entities) or a System description object (identified from the system description and use cases).

Five object classes are identified for the weather station system. Classify each object class as either an Application domain object (reflecting tangible hardware entities) or a System description object (identified from the system description and use cases).

WeatherStation identifier reportWeather () reportStatus () powerSave (instruments) remoteControl (commands) reconfigure (commands) restart (instruments) shutdown (instruments) WeatherData airTemperatures groundTemperatures windSpeeds windDirections pressures rainfall collect () summarize () Ground thermometer gt_Ident temperature get () test () Anemometer an_Ident windSpeed windDirection get () test () Barometer bar_Ident pressure height get () test ()

drag and drop the selected option to the right place

note_alt Add notes
flag Flag

Correct Answer

Explanation

Structural vs Dynamic Design Models

1 pts

When using UML to develop a design, two kinds of design model should be produced. Match each model type to its description and examples.

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

Model Type

Structural models
Dynamic models

Description and Examples

Describe the static structure of the system using object classes and their relationships; include generalization (inheritance), uses/used-by, and composition relationships - represented as class diagrams
Describe the dynamic structure of the system and show expected runtime interactions between objects; include sequence of service requests and state changes - represented as sequence diagrams and state diagrams
note_alt Add notes
flag Flag

Correct Answer

Explanation

Three Useful UML Model Types

1 pts

Three UML model types are particularly useful for adding detail to use case and architectural models. Match each model type to its classification and representation.

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

Model Type

Subsystem models
State machine models
Sequence models

Classification and Representation

Structural model - logical groupings of objects into coherent subsystems; represented as class diagrams with each subsystem shown as a package with enclosed objects
Dynamic model - sequence of object interactions; represented using UML sequence or collaboration diagrams
Dynamic model - how objects change state in response to events; represented using UML state diagrams
note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Sequence Diagram

1 pts
volume_mute

In the sequence diagram below showing the 'Report weather' interaction for the weather station, what does a stick arrowhead (as opposed to a squared-off arrowhead) on a sent message indicate?

Weather information system :SatComms :WeatherStation :Commslink :WeatherData request (report) acknowledge reportWeather () acknowledge get (summary) summarize () send (report) acknowledge reply (report) acknowledge
note_alt Add notes
flag Flag

Correct Answer

Explanation

Weather Station State Machine

1 pts
volume_mute

The weather station state diagram shows how the system responds to requests for various services. Which state does the system enter when a reportWeather() message is received while the system is in the Running state?

Operation Shutdown Configuring Running Controlled Testing Transmitting Collecting Summarizing shutdown() restart() reconfigure() powerSave() configuration done remoteControl() reportStatus() test complete weather summary complete transmission done clock collection done reportWeather()
note_alt Add notes
flag Flag

Correct Answer

Explanation

Weather Station States - Transitions

1 pts

In the weather station state machine, classify each event/message and the state transition it triggers from the Running state.

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

Event/Message received in Running state

shutdown() message
clock signal
reportWeather() message
remoteControl() message

Next State

Shutdown
Summarizing
Collecting
Controlled (a state responding to remote control room)
note_alt Add notes
flag Flag

Correct Answer

Explanation

Interface Specification

1 pts
volume_mute

Which of the following statements about interface specification in object-oriented design are TRUE? Select ALL that apply.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Weather Station Interfaces

1 pts

The weather station system has two interfaces defined. Drag the correct interface name into each placeholder.

The (1) interface defines operations used to generate weather and status reports - specifically weatherReport(WS-Ident) and statusReport(WS-Ident). The (2) interface provides four operations - startInstrument, stopInstrument, collectData, and provideData - which all map onto a single method in the WeatherStation object using a command string.

Please drag and drop the selected option in the right place or type it instead
Reporting
Remote Control
Data Collection
Configuration
note_alt Add notes
flag Flag

Correct Answer

Explanation