Loading, please wait ...

Short Questions for Interaction Diagrams

  • ×

    Hidden Questions!

    Some short questions are not visible. Usually teachers hides their visibility if they are few in number. Subject Expert recommends them to have more than 70+ questions against the topic and make them public.

  • 1 In sequence diagrams what are the common frame operators? Briefly describe the meaning of each frame operator.

    Answer

    Frame OperatorMeaning
    altAlternative fragment for mutual exclusion conditional logic expressed in the guards.
    loopLoop fragment while guard is true. Can also write loop(n) to indicate looping n times. There is discussion that the specification will be enhanced to define a FOR loop, such as loop(i, 1, 10)
    optOptional fragment that executes if guard is true.
    parParallel fragments that execute in parallel.
    regionCritical region within which only one thread can run.


  • 2 Draw communication diagram for SaveUser message in the following code:

    public class MainController {

    Validator v=new Validator();

    public ActionResults SaveUser(objUser){

    ActionResults ar = v.isValidUser(objUser);

    if(ar.IsSuccessful){ DAL.SaveUser(objUser); } return ar;

    }

    }

    Answer
    Image will be uploaded soon.


  • 3 Discuss the strength and weaknesses of sequence and communication diagrams?

    Answer

    Sequence Diagrams

    Strengths:

    • Clearly shows sequence or time ordering of messages
    • Large set of detailed notation options
    Weaknesses:

    • Forced to extend to the right when adding new objects
    • Consumes horizontal space
    Communication Diagrams:

    Strengths:

    • Space economical flexibility to add new objects in two dimensions

    Weaknesses:

    • More difficult to see sequence of messages
    • Fewer notation options


  • 4 Describe interaction diagrams and there types?

    Answer
    Interaction diagrams shows how objects interact via messages. They are used for dynamic object modeling. There are two common types:

    • Sequence diagrams
    • Communication interaction
    Both types can express similar interactions.Sequence diagrams are the more notationally rich of the two types. but communication diagrams are good for wall sketching.


Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert