3: Basic Structural Modeling
Q.1. Differentiate between Stereotype and Tagged Value in brief.
Ans. with Stereotypes, you can add new Things to UML; with tagged values, you can add new Properties.
Ans. with Stereotypes, you can add new Things to UML; with tagged values, you can add new Properties.
Roll no.-: 3806,3817,3828.
ReplyDeleteQ.1) What are the structural relationships ?
Ans-: 1) Dependencyy
2) Generalization
3) Association
Q.2) What is association relationship?
Ans-: It is structural relationship that object of one thing are connected to objects of another.
Q.3) How association can be represented?
Ans-: Association can be represented by
Name, Roll, Multiplicity, &Aggregation.
Q.4) What are the types of Association?
Ans-: 1)Recursive association
2) Binary association
3) OR association
4) N-Ary association
Q.5) What are the common mechanisms of UML?
Ans-: 1) Specification
2) Adornment
3) Common division
4) Extensibility
Q.6) How the dependency denoted as?
Ans-:
------->
Q.7) How generalization denoted as?
Ans-:
------------|>
Q.8) Explain stereo type.
Ans-: It is a rendered as <> & is placed above the name of another element. You can defined an icon for the stereo type & rendered that icon to the name of another element.
E.g.
Temperature sensor.
Q.9) Explain tagged value.
Ans-: It is a value of pair of (name,value) that describes a property of n elements.
Q.10) Explain constraint.
Ans-: It is boolean expression represented as a string to be interpreted in a designed language. A constraint may be denoted on path of the association or as a note with free form text.
Rno-3802,15,24,27,51
ReplyDelete1)What is recursive association?
Ans:It defines an association from a class to itself.
2)what are the contents of class diagram?
Ans:i.classes
ii.Interfaces
iii.Collaborations
iv.Dependency, generalization & association relationship.
3)State TRUE/FALSE
we may put a live URL inside a note
Ans: TRUE
4)list association types .
Ans:I.Recursive association
II.Binary association
III.OR association
IV.N-ary association
5)what is class?
Ans:A class is a description of a set of objects that share the same attributes, operations, relationships & semantics.
6)State any two kinds of relationships in UML.
Ans:a)dependency
b)Generalization
7)define binary operation.
Ans:an association that connects exactly two classes is called binary association.
8)define N-Ary.
Ans:N-Ary association is an association among more than two classes.
9)state the symbol of stereotypes.
Ans:<< >>.
10)How to denote constraints?
Ans:a constraint may be denoted on paths of association or as a note with free from text.
Roll no. 3809,3818,3822,3833
ReplyDeleteQ.1) What is the use of role in association?
Ans. A role name is a name written at the end of association.
Q.2) An association is a unidirectional relationship. Justify true or false.
Ans. False. An association is a bidirectional, structural relationship that specifies that objects of
one things are related to another.
Q.3) You can think of a tagged value as metadata. Justify true or false.
Ans. True. Because it’s values applies to the element itself, not it’s instance.
Q.4) What is the purpose of class diagrams?
Ans. 1. Analysis and design of the static view of an application.
2. Describe responsibilities of a system.
3. Base for component and deployment diagrams.
4. Forward and reverse engineering.
Q.5) How multiplicity can be shown?
Ans. Multiplicity can be shown as follows:
One – 1, Zero or one – 0..1, many - *, one or more - 1..*
Q.6) What is responsibility?
Ans. A responsibility is a contract or an obligation of a class.
Q.7) What are the common mechanisms that apply consistently throughout the language?
Ans. 1) Specifications
2) Adornments
3) Common divisions
4) Extensibility mechanisms
Q.8) What is a link attributes?
Ans. A link attribute is a property of the links in an association.
Q.9) Which are the terms used in association?
Ans. 1) Name
2) Role
3) Multiplicity
4) Aggregation
Q.10) Why note is used?
Ans. A note is a annotational thing in UML. Note type of thing is used to show comments for an
element or for group of elements.
Roll No:-3836,3840,3843,3844 Q.1)What are types of relationships?
ReplyDeleteAns-i)Dependency
ii)Generalization
iii)Association
iv)Aggregation.
Q.2)Generalization is called as which type of relationship?
Ans-Generalization is called as "is-a-kind-of" relationship.
Q.3)What is association?
Ans-An Association is a structural relationship that specifies objects of one class that are connected to the objects of another class.
Q.4)How Association can be represented?
Ans-Association can be represented with
i)name
ii)role
iii)multiplicity
Q.5)State the types of Association?
Ans-i)recursive association
ii)binary association
iii)OR association
iv)N-ary association
Q.6)What are the common mechanisms in UML?
Ans-The UML is made simpler by the presence of 4 common mechanisms:
i)Specification
ii)Adornment
iii)Common division
iv)Extensibility
Q.7)What is Adornment?
Ans-Adornment is graphical symbol for rendering comments all constraints attached to an element or a collection of elements.Notes are used to specifies the things like requirements, observations,reviews and explaination.
Q.8)What is constraints?
Ans-It is a boolean expression represented as a string to be interpreted in a designated language.
Q.9)Explain Aggregation?
Ans-Structural relationship between peers meaning that both classes are conceptually at the same level.To model "Whole/Part" relationship.
Q.10)State the symbol of stereotype
Ans-<>
Q.11)What is the use of role in association?
Ans-A rolename is a name written at the end of association.