Test Series - php

Test Number 38/39

Q: ________ are used in class diagrams to describe the way in which specific elements should be used.
A. Attributes
B. Constraints
C. Constants
D. Class Names
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?
A. Functions
B. Methods
C. Attributes
D. Constraints
Solution: Attributes describe a class’s properties. Attributes are listed in the section directly beneath the class name.
Q: + is the visibility code for?
A. Public
B. Private
C. Protected
D. Friendly
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?
A. Composition
B. Abstraction
C. Aggregation
D. Inheritance
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?
A. Strong Aggregation
B. Composition
C. Abstraction
D. Inheritance
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?
A. A sequence diagram is class based
B. A sequence diagram presents the participants of a system from right to left
C. The vertical broken lines represent the lifetime of the class in the system
D. A sequence diagram is object based
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________
A. double-headed arrow
B. visibility symbols
C. single-headed arrow
D. double diamond
Solution: A unidirectional association has single-headed arrow.
Q: # is the visibility code for?
A. Private
B. Friendly
C. Protected
D. Static
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?
A. Operations
B. Inheritance
C. Abstraction
D. Coupling
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________
A. single-headed empty arrow
B. single-headed filled arrow
C. double-headed empty arrow
D. double-headed filled arrow
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