Behavioral Models

This quiz covers topics including behavioral models and their two types of stimuli (data and events), data-driven modeling using activity diagrams (data-flow diagrams), event-driven modeling using UML state diagrams (states, transitions, stimuli, guards, superstates), and how to read and interpret state diagrams and their associated tables

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

QUESTION OF
Views #: 26
Questions #: 12
Time: 10 minutes
Pass Score: 80.0%
Style
Mode

What Are Behavioral Models?

1 pts
volume_mute

Behavioral models are models of:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Two Types of Stimulus

1 pts

Behavioral models respond to two types of stimuli. Match each type to its description and a typical system example.

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

Stimulus Type

Data
Event

Description and Example

A trigger that happens in the environment; it may have associated data but not always — e.g., a phone handset being picked up triggers a dial tone in a switching system
Data becomes available that must be processed by the system; its availability triggers the processing — e.g., a phone billing system receives call records and generates a bill
note_alt Add notes
flag Flag

Correct Answer

Explanation

Data-Driven Modeling — Purpose

1 pts
volume_mute

Data-driven models show:

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Data-Flow Activity Diagram

1 pts
volume_mute

The diagram below shows an activity diagram modeling the data processing involved in the insulin pump software.

Blood sugar sensor Get sensor value Sensor data Compute sugar level Blood sugar level Calculate insulin delivery Insulin requirement Calculate pump commands Pump control commands Control pump Insulin pump

In this data-flow activity diagram, what do the plain rectangles (without rounded corners) represent?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Data-Flow Models — Accessibility to Stakeholders

1 pts
volume_mute

True or False: Data-flow diagrams are simple and intuitive and so are more accessible to stakeholders (including non-engineers) than some other types of model. It is usually possible to explain them to potential system users who can then participate in validating the model.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Event-Driven Modeling — Foundation

1 pts
volume_mute

Event-driven modeling is based on the assumption that:

note_alt Add notes
flag Flag

Correct Answer

Explanation

UML State Diagram Notation

3 pts

Match each UML state diagram element to its correct meaning.

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

Element

Rounded rectangle
Labeled arrow between rounded rectangles
do: [action] inside a rounded rectangle
Filled circle
Filled circle inside a larger circle

Meaning

End state — the system has finished processing
A system state — a mode the system is in, optionally with an action performed in that state
The start state — where the system begins
A stimulus (event) that causes a transition from one state to another
An action performed by the system while it is in that state
note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a State Diagram — Microwave Oven

1 pts
volume_mute

The diagram below shows the state diagram for a simple microwave oven control system.

Waiting do: display time Full power Half power Full power do: set power = 600 Half power Timer Half power do: set power = 300 Full power Timer Set time do: get number exit: set time Number Door closed Door open Disabled do: display 'Waiting' Door closed Enabled do: display 'Ready' Start Operation do: operate oven Door open Cancel Waiting do: display time

According to this state diagram, what happens when the door is opened while the oven is in the Set time state?

note_alt Add notes
flag Flag

Correct Answer

Explanation

The Problem with Large State Models — Superstates

1 pts
volume_mute

The problem with state-based modeling for large systems is that the number of possible states increases rapidly. One way to manage this is by using the notion of a superstate. What is a superstate?

note_alt Add notes
flag Flag

Correct Answer

Explanation

Reading a Superstate Expansion

1 pts
volume_mute

The diagram below shows the expansion of the Operation superstate from the microwave oven model.

Operation Checking do: check status OK Cook do: run generator Time Timeout Alarm do: display event Turntable fault Emitter fault Done do: buzzer on for 5 secs. Disabled Door open Waiting Cancel

In the Operation superstate expansion, what happens when a Turntable fault or Emitter fault is detected?

note_alt Add notes
flag Flag

Correct Answer

Explanation

State Diagrams — Complementary Table

1 pts
volume_mute

State diagrams are usually extended with a table that describes the states and stimuli. True or False: In a state/stimulus table, the Stimulus section describes the actions the system performs in each state, while the State section describes the events that trigger state transitions.

note_alt Add notes
flag Flag

Correct Answer

Explanation

Activity Diagrams vs. Sequence Diagrams for Data Processing

1 pts
volume_mute

Both activity diagrams and sequence diagrams can be used to model data processing in a system. What is the key difference in what each emphasizes?

note_alt Add notes
flag Flag

Correct Answer

Explanation