Chapter 18 | Yeah Yeah Year Sizzle | Big Natural Tits 50994
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate may vary but the examiner may try to assess the understanding level of the candidate. 3) The language errors such as grammatical, spelling errors should not be given more Importance (Not applicable for subject English and Communication Skills). 4) While assessing figures, examiner may give credit for principal components indicated in the figure. The figures drawn by candidate and model answer may vary. The examiner may give credit for any equivalent figure drawn. 5) Credits may be given step wise for numerical problems. In some cases, the assumed constant values may vary and there may be some difference in the candidate‟s answers and model answer. 6) In case of some questions credit may be given by judgement on part of examiner of relevant answer based on candidate‟s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept. Q. No . 1.

Sub Q.N.

(a) Ans.

Answer

Marking Scheme

Attempt any FIVE of the following: 20 Explain Object Modelling Technique (OMT) by Rambaugh. 4M Object Modeling Technique (OMT) by Rambaugh includes four stages: 1. Analysis: - Starting from a statement of the problem, the analyst builds a model of the real-world situation showing its important properties. The analyst works with the requestor to understand the problem statement. The analysis model is a concise, precise abstraction of what the desired system must do, not how it will be done. A good Four model can be understood and criticized by application experts who are stagesnot programmers. The analysis model does not contain any 1M each implementation details. 2. System Design: - System designer makes high level decisions about the overall architecture. During system design, the target system is organized into subsystems based on both the analysis structure and the proposed architecture. The system designer decides what performance characteristics to optimize, choose a strategy of attacking the problem and make tentative resource allocations. Page 1 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

(b) Ans.

17630

3. Object Design: - The object designer builds a design model based on the analysis model but contains implementation details. The designer adds details to the design model in accordance with the strategy established during system design. The focus of object design is the data structures and algorithms needed to implement each class. 4. Implementation: - The object classes and relationships developed during object design are finally translated into a particular programming language, database or hardware implementation. Explain: (i) Attributes (ii) Link attribute with reference to class and 4M object. (i) Attributes: - An attributes is a named property of a class that describes a value held by each object of the class. A class may have any number of attributes or no attributes at all. An attribute represents some property of the thing that is shared by all the objects of that class. Explana Attributes are listed in the second part of Class Box. Each attribute tion of name may be followed by optional details. Each attribute name is attribute unique within a class. 2M For Example: Class Person has attributes Name, Birthdate and weight. Name is string, Birthdate is Date and Weight is integer.

(ii) Link attributes: - Link attribute specify properties of link/association between two classes/objects. For example: In the below example company and person has a Explana link/association between them which has link attributes as description, tion of datehired and salary. These attributes are placed inside the association Link class job. Association class is linked to association line with dashed line. attribute 2M

Page 2 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code: (c) Ans.

17630

Explain <> and <> relationships in use case 4M diagram. <> relationships: Include relationship is used to include one use case within the behavior sequence of another use case.  An include relationship between use cases means that the base case explicitly incorporates the behavior of another use case at a location specified in the base.  The include use case never stand alone. When an actor initiates any Explana tion of base use case then base use case executes included use case.  An include relationship as a dependency can be render with include 2M stereotyped as include. To specify the location in a flow of events in which the base use case includes the behavior of another, write include followed by the name of the use case.  Arrow is placed near the included use case. Arrow is directed from base use case to included use case. Example:

<> relationships: It adds incremental behavior of an use case.  A extend relationship between use cases means that the base use case implicitly incorporates the behavior of another use case at a location specified indirectly by the extending use case.  The extended use case adds itself to the base use case. Most of the time, an extend relationship has a condition attached to it. The extended use case executes only when the condition is true.  The base use case may stand alone, but under certain conditions, its behavior may be extended by behavior of another use case.  An extend relationship as a dependency can be render with stereotyped as extend. Arrow is directed from extended use case towards base use case. Example:

Explana tion of extend 2M

Page 3 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

(d) Ans.

17630

Differentiate between aggregation and association.

4M

Any four relevant differen ce 1M each

(e) Ans.

Explain branching in activity diagram. In an activity diagram, branching is used to show alternate path depending on the result of Boolean expression. In a system, some application processing may require flow of control based on Boolean expression.

4M

Page 4 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

A branch may have one incoming transition and two or more outgoing transitions. The outgoing transitions are evaluated only when a branch is Explana executed. Branching contains a decision box that holds Boolean tion 2M expression. Depending on result of expression one of the branches is executed. Notation:Diamond Shape is used for Decision and branches are represented by lines. The condition written in diamond is the decision criteria. Lines representing branches has guard condition with it.

Example:

example 2M

Page 5 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

(f)

Define node. Draw any two notations, state two uses of deployment 4M diagram. Ans. Node: Nodes are an important building block in modeling the physical aspects of a system. A node is a physical element that exists at run time and represents a computational resource, generally having at least some Definitio memory and often processing capability. Node can be used to model the n 1M topology of the hardware on which the system executes. A node typically represents a processor or a device on which artifacts may be deployed. Notations:1. Node

Any two notation 1M each 2. Communication line-Association

3. Communication line-dependency

4. Artifact

Page 6 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

5. Node instance

Uses of deployment diagrams can be described as follows:  To model the hardware topology of a system.  To model embedded system.  To model hardware details for a client/server system.  To model hardware details of a distributed application.  Forward and reverse engineering.

Any two uses 1M

(g) Explain with diagram create and destroy messages. 4M Ans. Create message: 1. Objects can be created according to the requirement of the system in between the processing of the system because they are not required for Explana the entire duration of the sequence diagrams interaction. tion with 2. If an object does not exist at the beginning of a sequence diagram diagram then it must be created in the system. of create 3. The UML shows creation by placing the object notation at the head of 2M the arrow for the message call that creates an object. Destroy message: 1. An object can destroy itself or it can be destroyed by other objects of the sequence diagram because those objects may not further require Explana during the system. tion with 2. If the object is destroyed by itself then “X” is placed at the tail of the diagram line and arrow head is towards another object to which it passes the of control. destroy 3. If the object is destroyed by another object then a destroy message is 2M send by another object from the system. In this case the large “X” is placed at the head of the return arrow. Example:-

Page 7 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

2. (a) Ans.

(b) Ans.

17630

Attempt any FOUR of the following: 16 Give any four principles of modelling. 4M Principles of modelling are as follows: 1. The choice of what models to create has a profound influence on how a problem is attacked and how a solution is shaped. Four 2. Every model may be expressed at different levels of precision. principle 3. The best models are connected to reality. s 1M 4. No single model is sufficient. Every nontrivial system is best each approached through a small set of nearly independent models. Draw and explain notations used for object diagram. 4M 1. Object: - An object is a concept, abstraction or thing that has meaning for an application. Object is basic run time entity. In UML object is represented with a box including its name followed by a colon and class name. Object and class name both are written in bold face Any with underline. Two Object can have attributes. Attributes are specified in the second part of notation the block. Attribute name is followed by value. Descript ion and Notation Example notation 2M each

2. Link- It is physical or conceptual connection among objects. It is used to show relationship among objects. It is represented with a solid line connecting two objects. Name of the link is written in italic form above line.

Page 8 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Example:-

(c)

Draw usecase diagram for railway reservation system. (Note: Any other usecase diagram for railway reservation system with correct notations shall be considered).

4M

Ans.

Usecase diagram for railway reservati on system 4M

Page 9 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

(d)

Define constraints. How they are applied? Give example. 4M (Note: Any example showing constraint shall be considered) Ans. Definition: Constraint is a Boolean condition involving model elements Definitio such as objects, classes, attributes, links and associations. A constraint n 2M restricts the values that entities/elements can assume. Notation: Constraint is shown as text written inside curly bracket. {Constraint} Example: - Constraints on Objects:

Descript ion of any one applicati on with example 2M

In the above example a constraint is specified as salary<=boss.salary inside curly brackets. It restricts the value of attribute salary of employees with respect salary of boss. (e) Explain substate with example. 4M Ans. Composite state has sub states. A Sub state can be sequential or concurrent. Sequential sub states include states of things that change with the help of transition in a particular sequence. Concurrent sub states are the states that executes in parallel. They are independent of Explana each other. In nested state diagram, each of a state can have sub state tion 2M and sub states receive the outgoing transition from of its composite state.

Example 2M

Page 10 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

(f) Ans.

17630

The above state diagram shows automatic transition with composite state. Automatic transition can be done in reverse, neutral or forward direction. If it is in forward then it can be in first, second or third gear. Forward is a composite state that has three sub states as first, second and third. Selecting N in any forward gear shifts a transition from forward to neutral. Select F in neutral state causes a transition to forward state. The sub state first is the default initial state. Describe conceptual model of UML with neat diagram. (Note: Any relevant diagram shall be considered). Conceptual model of UML consist of basic building blocks, the rules that dictate how those building blocks may put together and some common mechanisms that apply throughout the UML.

4M

Basic building blocks

Things

Relationships

Diagram 1M

Diagrams

Structural

Association

structural

Behavioral

Dependency

Behavioral

Grouping

Generalization

Annotational

Realization

Things: - things are the abstractions that are first citizens in a model. 1. Structural things: They are nouns of UML model. These are the static parts that represent elements that are either conceptual or physical. It includes class, interface, collaboration, use case, active class, component, and node. 2. Behavioral things: They are dynamic parts of UML model. It includes interaction, state machine. 3. Grouping things: They are the organizing parts of UML model. It includes package. 4. Annotational things: They are the explanatory parts of UML model. It includes notes.

Relevant explanat ion 3M

Relationships: The relationships are basic building blocks of the UML. 1. Association: It is structural relationship that describes a set of links among objects. 2. Dependency: It is a semantic relationship between two things in which Page 11 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

change to one thing may affect the semantics of the other thing. 3. Generalization: It is a relationship in which objects of the specialized element are substitutable for objects of the generalized element. 4. Realization: It is a semantic relationship between classifiers, wherein one classifier specifies a contract that another classifier guarantees to carry out. Diagrams: 1. Structural diagrams: It is used to visualize, specify, construct and document the static aspects of a system. It includes class, object, and component and deployment diagram. 2. Behavioral diagrams: It is used to visualize, specify, construct and document the static aspects of a system. It includes use case, sequence, collaboration, state chart and activity diagram.

3. (a) Ans.

Attempt any FOUR of the following: Explain different relationships in UML. Relationships in the UML: 1. Dependency: A dependency relationship specifies that a change in the specification of one thing may affect another thing that uses it. Graphically, a dependency is rendered as a dashed line, directed to the thing that is dependent on. Notation:

16 4M

Any 4 Relation ships 2. Association: An association is a structural relationship, specifying that objects of one 1M each thing are connected to objects of another. When an association connects two classes you can navigate from one object of one class to an object of another class and vice versa. Graphically an association is represented as a solid line connecting more than one class. Notation: 3. Generalization: It is a relationship between a general thing (called the super class or parent) and a more specific kind of that thing (called the subclass or child). With generalization relationship a child can inherit all the structure and behavior of parent. A child may add new structure or behavior or it may modify the behavior of the parent. Graphically it is represented as a solid line with hollow triangle placed near to the super Page 12 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

class. Notation:

4. Realization: A realization is a schematic relationship between classifiers in which one classifier specifies a contract that another classifier guarantees to carry out. Graphically a realization is represented as dashed directed line with the hollow triangle pointing to the classifier that specifies the contract. Notation

5. Aggregation: Aggregation is a part whole relationship where an aggregate class connects multiple subclasses which are part of aggregate class. It is represented with a diamond towards aggregate class. Notation

(b)

Ans.

Define following terms with notations : (i) Role names (ii) Class (iii) Qualified association (iv) Ordered association (i) Role names: A role name is a name that uniquely identifies one end of an association. It specifies a role of an object of a class which it plays in the association. A role name is written next to the association line near the class that plays the role. Example:-

4M

Explana tion of terms with notation 1M each

Page 13 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

(ii) Class: A Class is a group of objects with similar properties (attributes), common behavior (operation), common relationship to other objects and common semantics. Example: fruit, student, employee etc. Notation:

(iii) Qualified association: Qualified association specifies relation between two object classes and a qualifier. The qualifier is a special attribute that reduces the effective multiplicity of an association. The qualifier distinguishes among the set of objects at the many end of an association. A qualifier is drawn as a small box on the end of the association line near the class it qualifies. Notation:

(iv) Ordered association: Usually the objects on the "many" side of an association have no explicit order, and can be regarded as a set. Sometimes the objects on the many side of an association have order. Writing {ordered} next to the multiplicity dot indicates an ordered set of objects of an association. Notation:

(c) Ans.

Explain structured control in sequence diagram for conditional execution. Structured control in sequence diagram: It defines statements or group of statements in a diagram which

4M

Page 14 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

determines the sequence of execution of other instructions or statements. Conditional execution: Explana 1. In sequence diagram conditional statements are used to check the tion condition. 2M 2. Alt operator is used to indicate the condition in sequence diagram. The body of the control operator is divided into multiple sub regions by horizontal dashed lines. 3. Each sub region represents one branch of a condition. Each sub region has a guard condition. If the guard condition for a sub region is true, then that sub region is executed. 4. At most one sub region may be executed. 5. One sub region may have the special guard condition [else]. This sub region is executed if none of the other guard conditions are true. Example:

Example 2M

(d) Ans.

In the above example alt operator is used to show condition as „amount >=balance‟. If the condition is true then, update operation will be perform on account object. If the condition is false then, else region executes if a message as insufficient funds from account object to bank object. Explain forking and joining with diagram. Fork in Activity diagram: A fork in activity diagram represents the splitting of a single flow of

4M

Page 15 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

control into two or more concurrent flows of control. A fork may have one incoming transition and two or more outgoing transitions, each of which represents an independent flow of control. A synchronization bar is used to connect incoming and outgoing transitions. Notation:

Explana tion of forking with example 2M

Join in Activity diagram: A join in Activity diagram represents the synchronization of two or Explana more concurrent flows of control. A join may have two or more tion of incoming transitions and one outgoing transition. Above the join, joining activities associated with each of these paths continue in parallel. At the with join, the concurrent flows synchronize means each flow waits until all example incoming flows complete their execution. A synchronization bar is used 2M to connect incoming and outgoing transitions. Notation:

Example:

(e) Ans.

Explain concept of interface and ports. 4M Interfaces: A component can be connected with other components through Explana interfaces. An interface is a collection of operations that are used to tion of specify services of components. A component can provide an interface interface or can use services of a component. A full circle represents an interface 2M created or provided by the component. A semi-circle represents a required interface. Page 16 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Ports: A port specifies an interaction point through which a component can communicate with its environment, other components or with its Explana internal parts. Ports are represented using a square along the edge of a tion of component. A port is often used to help expose required and provided ports interfaces of a component. 2M

(f) Ans.

Explain generalization and inheritance. 4M Generalization: It is also referred as „is-a‟ relationship. It is relationship between a class (super class) and one or more variations of the class (sub classes).It organizes classes by their similarities and differences, structuring the description of objects. The super class holds common attributes, operations and association. The subclasses add Explana specific attributes, operations and associations. Each sub class inherits tion of the features of its super class. generali Notation: A large hollow arrowhead is used to show generalization. The zation arrowhead points towards the super class. 2M

Example:-

Page 17 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Inheritance: It is the mechanism of inheriting features of super class in its subclass. Inheritance provides reusability of code where code declared for super class can be used by its sub class. Example:

4. (a) Ans.

Explana tion of inherita nce 2M

Attempt any TWO of the following: State any two types of actors used in usecase diagram. Draw a neat usecase diagram for printing result from MSBTE website. An actor specifies a role played by a user or any other system that interacts with the subject. Types of actors used in use case diagram:

16 8M

1) Primary/principle Actor: People who use the main system functions are refereed as primary or principle actors. Example: in ATM system primary actor is customer

Any two types of actors 2) Secondary Actor: People who perform administrative or 2M each maintenance task are referred as secondary actors. It provides a service to the system under design. Example: in ATM system a person in charge of loading money into the system is a secondary actor. Page 18 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

3) External actor: The hardware devices which are required as apart of application domain and must be used are referred as external actors. Example: in ATM system printer is an external actor. 4) Other system actor: The other system with which the system must interact referred as other system actors. Example: in ATM system bank network system is another system actor. Use case diagram for printing result from MSBTE website.

Any relevant use case diagram 4M

Page 19 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code: (b)

17630

Draw activity diagram for making photocopies from Xerox machine. (Note: Any other activity diagram for making photocopies with correct notations shall be considered).

8M

Ans.

Any relevant diagram 8M

Page 20 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code: (c)

Ans.

17630

Explain importance of synchronous and asynchronous messages in 8M sequence diagram. Draw sequence diagram for student admission in your institute. (Note: Any other sequence diagram for student admission in your institute with correct notations shall be considered.) Synchronous Messages: A synchronous message is used when sender sends a message to receiver and waits until the receiver processes the sent message. The receiver sends a return message to the sender and then sender continues its processing. It is important when sender needs acknowledgement of Explana sent message from the receiver. tion of It is shown with a directed line from sender to receiver. The line ends at Synchro receiver with closed and filled arrow head pointing towards receiver. nous Example:message s 2M

Asynchronous Messages: An asynchronous message is used when the sender does not wait for the receiver to finish processing the message. A sender continues sending messages to other receiving objects without considering reply from receiver. It is important when sender does not need acknowledgement of sent message from the receiver. It is shown with a directed line from sender to receiver. The line ends with open arrow head pointing towards receiver. Example:-

Explana tion of Asynchr onous message 2M

Page 21 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Sequenc e diagram for student admissio n in your institute with correct notation s 4M

5.

Attempt any FOUR of the following: (a) List and classify various UML diagrams. Ans. UML Diagrams are classified into Two major category as follows: 1. Structure Diagram a. Class Diagram b. Object Diagram c. Deployment Diagram d. Component Diagram 2. Behavior Diagram

16 4M

List 2M Classific ation 2M

Page 22 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

(b) Ans.

17630

a. Activity Diagram b. Use case Diagram c. State Machine Diagram d. Interaction Diagram Describe propagation of operation with diagram and example. 4M Propagation of Operation: Propagation is also called as triggering. It is the automatic application of an operation to a network of objects when the operation is applied to some starting object. Example: Moving an aggregate object moves its parts along with it. So Explana the operation move applied to aggregate object propagates move tion 2M operation to the parts. Propagation of operation is shown with a small arrow indicating direction of propagation above association line. Example/diagram:

Example with diagram Above diagram shows an example of propagation. A person owns 2M multiple documents. Each document consists of paragraph that in turn consists of characters. The copy operation propagates from documents to paragraphs to characters. Copying a paragraph copies all the characters in it. The operation does not propagate in the reverse direction. A paragraph can be copied without copying the whole document. (c) Draw and state notations for state diagram. 4M Ans. State chart diagram: A state chart diagram shows flow of control from one state to another state. Notations: Sr. No.

Name

1

State

Symbol

Description

A state is a condition or a situation in the life of an object during which it Page 23 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

(d) Ans.

17630

satisfies some conditions, performs Any some activity or waits for some four events. It is represented with a notation rounded rectangle. Name of the state 1M is written inside the rectangle. each It indicates the default starting place Initial 2 of the state diagram. An initial state is State represented as filled circle. Final state indicates end of the execution of the system. It is Final 3 State represented as a filled black circle surrounded by an unfilled circle. A transition is a relationship between two states. It indicates that an object in the first state performs some Transitio 4 action and enters in the second state n when a specific event occurs. Transition is represented with a directed line. An event is the specification of a significant occurrence that has location in time and space. An event 5 Event can be a signal or a call to a function. An event is indicated with text written above or below transition line. An action is an executable computation. Action may include operation calls, the creation and destruction of another object or 6 Action sending of a signal to an object. It is indicated with text written below or above the transition line associated with an event separated by slash. Explain different notations used for component diagram. 4M

1. Component: A component is a physical and replaceable part of the system that provides or uses set of interfaces. A component is shown as a rectangle with tabs. A component has name that distinguish it from other components. Name of the component is written as a text inside the Page 24 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

rectangle.

2. Interfaces: A component can be connected with other components through interfaces. An interface is a collection of operations that are used to specify services of components. A component can provide an interface or can use services of a component. A full circle represents an interface created or provided by the component. A semi-circle represents a required interface.

Any four notation s 1M each

3. Port: A port specifies an interaction point through which a component can communicate with its environment, other components or with its internal parts. Ports are represented using a square along the edge of a component. A port is often used to help expose required and provided interfaces of a component.

Page 25 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

4. Dependencies A dependency exists between two elements. Changes to the definition of one element may cause changes to the other. It is represented as dashed line with an arrow.

5. Realization A component realizes an interface by providing service through interface. It is indicated with a dashed line and a hollow arrow head.

Interface

6. Connector It is a link that specifies communication between two or more classifiers. Connectors are of two types1. Delegation connector: a component realizes or uses an interface. A component can have internal parts. A part of a component can realize or use an interface. To show a connection among internal parts of a component and interface delegation connector is used. 2. Assembly connector: it is a connector between two or more parts or ports on parts that defines services provided by parts for other parts.

(e) Ans.

Explain multiplicity with example. Multiplicity Multiplicity specifies the number of instances of one class that may

4M

Page 26 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code: relate to a single instance of an associated class. The UML specifies multiplicity as follows: Notations: 1. ”1” exactly one 2. “1…*” One or more 3. “3-5” three to five 4. 0..1 zero to one 5. “2,4,18” two, four or eighteen 6. Symbol * denotes “many”.

17630

Explana tion 2M

Example : Example 2M

(f)

Ans.

In the above example one or more persons may work in many companies. Draw an activity diagram to purchase books from supplier in library. (Note: Any other activity diagram showing purchase book from supplier in library with correct notations shall be considered). Activity diagram to purchase book from supplier in library:

4M

Page 27 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Activity diagram for purchas e book from supplier in library with correct notation s 4M

6. (a) Ans.

Attempt any FOUR of the following: Describe unified software development life cycle.

16 4M

Page 28 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Any four stages 1M each

(b) Ans.

Fig: Software development lifecycle (SDLC) There are four phases of SDLC: 1) Inception: It is first phase of SDLC where the idea for the development of a system is finalized. 2) Elaboration: It is second phase of process where the product vision and its architecture is defined. In this phase the systems requirements are collected with respect to vision statement, evaluation criteria, functional and non-functional behavior and testing of the processes. 3) Construction: It is a third phase of the SDLC where the project is implemented to handover to the user community the systems requirements and its evaluation criteria are constantly reexamined against the project needs in this phase the resources are allocated to reduce risk in the project after implementation. 4) Transition: It is a fourth phase of process where the software is handed over to user community in this phase the software is continuously in improvement the bugs are detected and solved and if required new released of the project are developed. Describe metadata. Explain with appropriate example. Metadata: It is a data that describes other data for example a class definition is a metadata. UML models are also referred as metadata as they describe the things required for the application many real world applications have metadata such s parts, catalogues, blue-prints and dictionaries.

4M

Descript ion of metadat a 2M

Page 29 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

Example 2M

(c)

Ans.

In above example car model has a model name, year, base price and manufacturer a physical car has a serial no,, color, options and owner. A car model describes many physical car and stores common data about them. A car model is referred as metadata which relates to the data of physical care. A class descriptor object contains feature and they can have their own classes which are known as meta classes. Draw sequence diagram for ATM session of withdraw money. (Note: Any other sequence diagram showing ATM -money withdrawal with correct notations shall be considered). ATM -money withdrawal class diagram

4M

ATM session of withdra w money 4M

Page 30 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code: (d) Ans.

17630

Explain swim lane in activity diagram with one example. Swim lane: 1. In activity diagram, activity states are partitioned into groups. Each group represents the entity responsible for those activities. Each group is called as swim lane because visually each group is divided by a line from its neighbor. 2. A swim lane specifies a locus of activities. 3. Each swim lane has a unique name within its diagram. It represents some real world entity.

4M

Explana tion 2M

4. Each swim lane represents a high level responsibility for part of the overall activity of an activity diagram and each swim lane may eventually be implemented by one or more classes. 5. In an activity diagram partitioned into swim lane, every activity belongs to exactly ones swim lane, but transitions may cross lanes. Example:

Diagram /exampl e 2M In above diagram two groups are shown were first group is for participannt1 and second group is for participant2. A swim lanes separate the activities of each participants in its own group.

Page 31 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code: (e) Ans.

17630

Describe notations used for deployment diagram. Notations:1. Node : A node is physical element that exists at runtime & represents a computation resource with some memory and processing capability nodes can be a server, printer, cash dispenser etc…

4M

Any four notation s 1M each

2. Communication line-Association: Communication line is used to connect 2 nodes or nodes with other devices. Communication lines specify 2 types of relationship for connecting to either a node or to the component. Association is used to show relationship between 2 nodes. It is shown with a solid line.

3. Communication line-dependency: It is used to show relationship between node and a component. A component is placed inside the node to provide processing capability to the node. A node depends on the component. Dependency is shown with dashed line and a arrow head. It connects node with the component arrow head points towards component.

Page 32 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

4. Artifact: Artifacts are physical file that execute or are used by software of the system. Artifacts includes: 1. Executable files such as .exe or .jar files 2. Library files such as .dll files 3. Source files such as .java or .cpp files 4. Configuration files that are used by software at runtime in specific format such as .xml or .txt

5. Node instance: Instance of a node means two or more nodes of similar node type. In diagram there can be more than one nodes with same properties and structure each node with similar structure is referred as instance of a node. Each instance has its unique identity.

(f) Ans.

Draw and state notations used to draw activity diagram. Notations of Activity Diagram:

Name 1.Start/Initial Nodes

Symbol

Description It shows the starting point of the activity diagram. An initial or start node is depicted by a filled circle with black color.

4M

Any four notation s 1M each

Page 33 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

2. Final/Exit Node

4. Activity

5. Transition /Edge/Pat h

6. Fork Node

7. Join Node

17630

It shows the exit point of the activity diagram. An activity diagram can have zero or more activity final nodes. Final node is rendered as two concentric circles with filled inner circle. Activity is parameterized behavior represented as coordinated flow of actions. An activity is the process being modeled, such as washing a car. An activity is a set if actions. The flow of the activity is shown using arrowed lines called edges or paths. The arrowhead on an activity edge shows the direction of flow from one action to the next. A line going into a node is called an incoming edge, and a line exiting a node is called an outgoing edge. It is used to show the parallel of concurrent actions. Steps that occur at the same time are said to occur concurrently or in parallel. Fork has single incoming flow and multiple outing flows. The join means that all incoming actions must finish before the flow can proceed past the join. Join has multiple incoming flows Page 34 / 35

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001 - 2005 Certified) MODEL ANSWER SUMMER - 2017 EXAMINATION Subject: Object Oriented Modeling and Design Subject Code:

17630

and single outing flow.

8. Condition

9. Decision/ Branch

10. Note

11. Swimlane

Condition text is placed next to a decision marker to let we know under what condition an activity flow should split off in that direction. A marker shaped like a diamond is the standard symbol for a decision. There are always at least two paths coming out of a decision and the condition text lets we know which options are mutually exclusive. A note is used to render comments, constraints etc. of an UML element. We use partitions to show which participant is responsible for which actions. Partitions divide the diagram into columns or rows (depending on the orientation of your activity diagram) and contain actions that are carried out by a responsible group. The columns or rows are sometimes referred to as swimlanes.

Page 35 / 35

17630 object oriented modeling.pdf

Page 1 of 35. MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION. (Autonomous). (ISO/IEC - 27001 - 2005 Certified). MODEL ANSWER. SUMMER ...

799KB Sizes 0 Downloads 5 Views

Recommend Documents

6.Object oriented programming
data type. The entire set of data and code of an object can be made a user defined type through a class. 8. ... AI and expert systems. • Neural networks and ..... The compiled output file is placed in the same directory as the source. • If any er

6.Object oriented programming
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING. OBJECT ORIENTED PROGRAMMING. CLASS : THIRD SEMESTER CSE. Prepared By,.

Object-oriented Oracle
Even though no attempt is made to enforce the storage of the object instances within the ...... several HDs, and a HD is an aggregation of several HD controllers.

object-oriented develophent
Hagnavox Electronic Syeteme Company. Advanced Software Syetems .... Traditional software development methods are reetricted to the claeeic wuaterfall* ...

OBJECT ORIENTED PROGRAMMING.pdf
Explain how exception handling is done in. C++. 10. P.T.O.. Page 1. Whoops! There was a problem loading this page. OBJECT ORIENTED PROGRAMMING.pdf.

Object Oriented Concepts
Software Development Methodology and Programming Fundamentals. Stream. (Eg. Project. Mgmnt/Customer. Interface/Consulti ng etc.) PM ... 1 PM Stream (Choose one)-SE: Software Engineer, PA: Programmer Analyst, PM: Project Manager.

Object Oriented Programming.pdf
Alan Kay, one of the promoters of the object-oriented paradigm and the principal. designer of Smalltalk, has said: “As complexity increases, architecture ...

Domain-Oriented Reuse Interfaces for Object-Oriented ...
Abstract. Object-oriented frameworks play an important role in current software ...... for customizing the valid source and target node figures that the connection.

object oriented design in ruby.pdf
object oriented design in ruby.pdf. object oriented design in ruby.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying object oriented design in ...

[PDF] Object Oriented Software Engineering
Object Oriented Software Engineering: A Use Case Driven Approach PDF, Read .... comprehensive object-oriented process for developing large-scale industrial.

cs1009 object oriented analysis and design - thetechsingh
Maintenance and the Object Oriented Paradigm – CASE Tools for .... o Project management need to monitor the project management plan and be on the watch ...... o Linux o Mac OS, or o OS/370. ❖ Problems can arise even when upgrading ...

Testing Object-Oriented Software
May 4, 1993 - software is composed of objects and classes which interact via message passing ... development cycle, object-oriented software is most often ...

PDF Object-Oriented Software Engineering
Object Oriented Software Engineering An Agile Unified Methodology Irwin Computer Science David C Kung Dr on Amazon com FREE shipping on … ...

PDF Object-Oriented Software Engineering
... Technology amp Software Development Adobe Creative Team Adobe Press .... by David C. Kung Dr., PDF Object-Oriented Software Engineering: An Agile ...

Ebook Object Oriented Software Engineering
Explore research at Microsoft a site featuring the impact of research along with publications products downloads and research careers InformationWeek com News analysis and research for business technology professionals plus peer to peer knowledge sha

FREE [DOWNLOAD] OBJECT-ORIENTED ANALYSIS AND DESIGN ...
Robert B. Jackson, Stephen D. Burd Full Ebook,PDF Free Object-Oriented Analysis And Design With The Unified Process (Available Titles CengageNOW) By John W. Satzinger, Robert B. Jackson, Stephen D. Burd Download ebook ... of Microsoft Project 2003 to

[PDF] Object-Oriented Software Engineering
Object Oriented Software Engineering An Agile Unified Methodology David C Kung Dr on Amazon com FREE shipping on qualifying ... Management, and Agile.

PDF Object Oriented Software Engineering
Download Best Book Object Oriented Software Engineering: A Use Case Driven .... development of large software systems with an object-oriented approach.

[PDF] Object-Oriented Software Engineering
... Ebook Pdf Object Oriented Software Software Engineering An Dr David …irwin computer science ebook david kung kindle store object oriented agile unified ...

Object-Oriented-Programming-ABAP-Objects-James-1592292356 ...
... Download: Object-Oriented Programming with ABAP Objects... 3. Page 3 of 4. Object-Oriented-Programming-ABAP-Objects-James-1592292356-ebook.pdf.

pdf object oriented programming
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf object ...

eBook Download Object Oriented Software ...
eBook Download Object Oriented Software Engineering: A Use ... Test Driven Development TDD is a fast paced incremental software development .... global view of system development and focuses on minimizing the system s life cycle cost.

cs1009 object oriented analysis and design - thetechsingh
It is also known as Client-Server association or ...... o Linux o Mac OS, or o OS/370. ❖ Problems can arise even when upgrading the same operating system o Example: ... o The cost of overhead such as rent, utilities, and salaries of senior.

Effective Object-Oriented Software Construction
Epub Download C++: Effective Object-Oriented Software ... of object-oriented design/programming in the context of real-world C++ software development, ...