Hi All,

Here are the interview questions for UML

Question 1:
What is UML?

Answer
: UML is a modeling and graphical languagewhich is used for artifacts of the system and allows to
create blue print of the all aspects of system

Question
2: What are three types of modeling in UML?

Answer
: (i) Structural
(ii) Behavioral
(iii) Architectural

Question
3: What is UML Architecture?

Answer
: Takes Care structural and behavioral aspect of software system which includes software usage,
Functionality, performance, reuse, economic, and all technologic constraints.

Question
4: What are UML Messages:

Answer
: Specification of a communication.

Question
5: Define modeling in UML and its advantages?

Answer
: Following are advantages:
· Model is simplification of reality.
· Blue print of the actual system
· Specification of structural and behavior of a system
· Templates for designing the system
· Helps documentation of system.

Question
6: What are different Views in UML?

Answer
: 1. Use case view – presents the requirements of the system
2. Design View – Capturing the vocabulary
3. Process View – Modeling the system process and threads
4. Implementation View – Addressing the physical implementations of the systems
5. Deployment View – Model the components required for deploying the system.

Question
6: Define SDLC in UML?

Answer
:
Ø SDLC is Software Development Life Cycle
Ø SDLC is a system that includes processes like Use Case driven, Architecture centric, Iterative, and Incremental. This Life cycle is divided into phases:
Ø Phase is a time span between two milestones
Ø The milestone are Inception, Elaboration, Construction and Transition
Ø Process workflows that evolve through those phases are Business Modeling and requirement gathering, Analysis and Design. Support Workflows are configuration, change management and project management.

Question
7: Explain the types of Diagrams in UML?

Answer
: We have nine types of diagrams in UML.
a. Use Case Diagram: it describes “HOW” the system works. It identifies the primary elements and processes that form the system. It shows “actors” and their “roles.”
b. Class Diagram: This diagram explores a detail design of the system. The class diagram is designed using Use Case diagram. We can identify all “Nouns” in use cases as classes and “verbs” as method of the classes.
c. Object Diagram: The Diagram represent the state of classes in the system and their relationships or associations at a specific point of time.
d. State Diagram: This Diagram represents different states that objects in the system undergo during the life cycle.
e. Sequence Diagram: This Diagram is used to explore logic of complexion operations, function or procedure. In this diagram, sequence of the interactions between the objects is represented step by step.
f. Collaboration Diagram: This diagram groups together the interaction between different objects.
g. Activity Diagram: This gives the detail view of the business logic.
h. Deployment Diagram: It shows the deployment view of the system. It shows how hardware and software works together to run system.

Question
8: What are the advantages of using UML?

Answer
: Advantages of using the UML breaks the complex system into discrete pieces that can be
understood easily.
Handover the system to new team becomes easier
Complex Systems can be understood by the disparate developers who are working on different
platforms.
UML model is not a system or platform specific. IT unifies all disparate developers under one roof.

Question
9: What is component diagram in UML?

Answer
: A Component Diagram is particularly useful in teams of larger size. UML components are great
to perform architectural landscape for a specific system. The component diagram allows to
model high level software components and interfaces to those components. The sub team’s
effort is very less, once the interfaces are perfectly designed and accepted by the team
members.

Question
10: What are the various components in sequence diagrams?

Answer
: a. Actor: Actor represents an external user/end user who interacts with system.
b. Object: Object is represented by one of the components of the system.
c. Unit: Unit is a subsystem or a sub system of other entity within the system.
d. Separator: Separator represents a boundary among sub systems, components or units.
e. Group: Represents different header elements in sub system.

Question
11: What are the parts of the deployment diagram?

Answer
:
a. Nodes: A Node represents any hardware component. The configuration of hardware is represented by attribute of nodes.
b. Components: A Component represents software. Each component straightly represents a class or object that in turn represents methods.
c. Dependencies: The reliability of one component with that of another is depicted by dependencies.
d. Links: To tie up tow nodes, the links are utilized. The links are implemented by using nodes and their associations.

Question
12: What are the elements in State Chart Diagrams?

Answer
:
· Initial State: This shows the first activity of the flow.
· State: A State represents the state of an object of a particular given point of time.
· Transition: The Transition from one state to another state of objects is represented by an arrow.
· Event and action: A trigger that causes a transition to occur.
· Signal : When a message or a trigger caused by an event to a state, which causes a transition, this message is called a signal.
· Final State: A The State Diagram end with a diagram that depicts a bull’s eye is known as Final state.

Question
13. Explain all elements of a state Chart Diagram?

Answer
:
a. Initial State: The first or the default state that the objects are in. It is denoted by a solid circle.
b. State: All the states an object can go in are mentioned in this, It is represented by a rectangle with rounded edges.
c. Transitions: Depicted by arrow from the source state to destination state.
d. Final State: Depicts the end of the. It is shown by a bull eye’s symbol.

Question
14: What are different elements of a collaboration diagram?

Answer
: Object: The interaction between object takes place in a system. An object is depicted by a
rectangle with the name of the object, preceded by a colon and underline.
Relation/ Association: Association among objects is linked by connecting them. The card
initially by placing qualifiers on either ends.
Messages: An Allow that commencing from one object to destination object. This depicts the
interaction between objects. The sequence or order of the interaction is depicted by the
number.

Question
15: Brief exploitation of all elements in activity diagrams?

Answer
:
a. Activities: An Activity indicates an action that performed in the system.
b. Transitions: Transitions are represented by open arrow heads. Transitions are used to indicate the flow among elements in the diagram.
c. Decision Points: The logical branching is depicted by the decision points.
d. States: A State is shown in a rounded rectangle. States are indicated to mention the milestones of processing in the activity diagrams.

Question
16: Explain the different Activity and Sequence Diagrams?

Answer
: The following are the difference between Activity and sequence Diagrams?
A sequence diagram shows the way of processes execute in a sequence. For example, the order of operations and parameters.
· An Activity Diagram depicts the operational workflows.
· A Sequence Diagram is focused to represent interactions between different objects.
· Activity diagram shows the action for various objects.

Question
17: Difference between Activity and Sequence Diagram?

Answer
:
a. Activity Diagram: Captures the process flow. They are used for functional modeling.
b. Sequence Diagram: they track the interaction between the objects. They are used for dynamic modeling.

Thanks,
Admin