Q: ________ are used in class diagrams to describe the way in which specific elements should be used.
Solution: The {abstract} syntax is an example of a constraint. There is no special structure for the text between the braces; it should simply provide a short clarification of any conditions that may apply to the element.
Q: Which one of the following is displayed below the class name in the class diagrams?
Solution: Attributes describe a class’s properties. Attributes are listed in the section directly beneath the class name.
Q: + is the visibility code for?
Solution: The visibility symbol is followed by the name of the attribute.
Q: Which relationship is illustrated by a line that begins with an unfilled diamond?
Solution: In the case of aggregation, the contained objects are a core part of the container, but they can also be contained by other objects at the same time.
Q: If the diamond is filled it depicts which relationship?
Solution: In composition, the contained object can be referenced by its container only. It should be deleted when the container is deleted.
Q: Which one of the following statements is true about sequence diagrams?
Solution: A sequence diagram is object based rather than class based. It is used to model a process in a system step by step.
Q: A bidirectional relationship in class diagrams is described by________
Solution: A unidirectional association has single-headed arrow.
Q: # is the visibility code for?
Solution: Available to the current class and its subclasses only.
Q: Which one of the following is displayed in the third section of the class diagram?
Solution: Operations describe methods, or more properly, they describe the calls that can be made on an instance of a class.
Q: Inheritance in class diagrams is depicted by________
Solution: The UML describes the inheritance relationship as a generalization. This relationship is signified by a line leading from the subclass to its parent. The line is tipped with an empty closed arrow.
You Have Score    | /10 |