Preview

13 - UML

 1. UML stands for ________________-

  Uniform Morse Language

  Unified Modelling Language

  Universal Middle Language

  None of the above

 2. UML is a _____________________for diagramming the requirements, actions and physical distribution of software systems.

  coding technique

  visual technique

  high level coding technique

  systems life cycle technique

 3. In the mid 1990's, there were several popular object-oriented diagramming methods. Fortunately, each of their proponents agreed to develop a new system and standard that has the best qualities of all of them

  TRUE

  FALSE

 4. There are different types of UML diagrams. Use Cases represent the the types of people (_____) that will be using the software
It also indicates what the people will be doing

  objec

  roles

  classes

  authorships

 5. What are the different interaction diagrams UML has?

  Interaction overview diagrams

  All of the mentioned

  Communication diagrams

  Sequence diagrams

 6. Here an association between a and b has been shown. If there is no arrow on the line, the association is taken to be _____________________. A unidirectional association is indicated like this
advanceduml1.gif

  bidirectional

  fully directional

  None of the above

  not existing

 7. The special association of a car to its compoment parts is known as aggegration. If b aggregates a, then a is a part of b, but their ______________________________
Note:
=========================================
Objects are often made up of other objects.
Cars are made up of steering wheels, engines, 
transmissions and so forth. 

Key point: Each of these components may be 
an object in its own right.
advanceduml2.gif

  None of the above

  life times are dependent: if one is deleted, the others are deleted

  lifetimes are co-existent. They cannot exist without each other

  lifetimes are independent: if one is deleted the other still exists

 8. f you were modeling a person, the lifetime of the heart and lungs would be directly controlled by the lifetime of the aggregating person.We call this special relationship _______________
Composition is shown by a black diamond on the end of 
association next to the composite class. If b is composed 
of a, then b controls the lifetime of a.
advanceduml3,gif

  object orientattion

  composition

  dependency notation

  indepdendent objectation

 9. The following UML diagram shows ________________and we can conclude that some animals are mammals and some are reptiles.
advanceduml4.gif

  inheritance

  abstraction

  polymorphism

  encapsulation

 10. The diagram below shows an example of __________________________. The two base classes are unrelated in this case.
advanceduml5.gif

  multi-level inheritance

  single inheritance

  None of the above

  multiple inheritance

 11. It is good practice to remember that inheritance should model is-a relationships and aggegration should model has-a relationships.
Is a car a steering wheel? Clearly not. 
====

A car is not a specialization of these things; 
it’s an aggregation of these things. 

A car has a steering wheel, it has doors and it has tires
      ======
advanceduml6.gif

  FALSE

  TRUE

 12. In the following diagram, a hotel management system is shown. The + symbols are:
advanceduml7a.png

  protected attributes or methods

  general methods

  private attributes (limited access)

  public attributes or methods (public access)

 13. Look closely at the diagram. The attributes are shown in the middle section. What goes in the bottom section?
The standard class diagram is composed of three sections:

Upper section: 
===============
Contains the name of the class. 
This section is always required, whether you are talking 
about the classifier or an object.


Middle section: 
================
Contains the attributes of the class. 
Use this section to describe the qualities of the class. 
This is only required when describing a specific instance of a class.

Bottom section: 
================
???????????????
advanceduml7.png

  public attributes or methods (public access)

  Includes class operations (methods). The operations describe how a class interacts with data.

  Includes additional class attributes.

  general methods

 14. What is an example of a method in this diagram?
advanceduml7.png

  name

  address

  general methods

  public attributes or methods (public access)

 15. Aggregation is demonstrated between Customer and Account (Customer -has an -account). This means, if a customer account is deleted ______________

  the customer will be duplicated in another class

  the customer will also be deleted

  public attributes or methods (public access)

  general methods

 16. UML was set up as one of the many hundreds of models to describe an object-oriented programming approach

  FALSE

  TRUE

 17. Since classes are the building block of objects, ___________ are the building blocks of UML

  class diagrams

  UML cards

  None of the above

  object blocks

 18. UML is a pictorial language used to make software blueprints
A picture is worth a thousand words, this idiom absolutely fits describing UML. Object-oriented concepts were introduced much earlier than UML

  TRUE

  FALSE

 19. UML diagrams are not only made for developers but also for business users, common people, and anybody interested to understand the system

  FALSE

  TRUE

 20. UML is not a programming language but tools can be used to generate code in various languages using UML diagram

  FALSE

  TRUE