60 uml interview questions and answers

UML interview questions and answers for freshers and experienced candidates. Also find UML online practice tests to fight written tests and certification exams on UML. In this section we have covered almost all UML questions that might be asked during an interview.

Uml interview questions and answers

Part 1   Part 2   Part 3   Part 4   Part 5   Part 6   Part 7   Part 8   Part 9 Next>>
1.What is UML?

Answer - UML is Unified Modeling Language. .....

2.Define modeling in UML and it advantages.

Answer - Model is a simplification of reality, blueprint of the actual system.....

3.What are the different views in UML?

Answer - Use Case view - Presents the requirements of a system......

4.Define SDLC

Answer - SDLC of a system included processes like Use case driven, Architecture centric, Iterative and Incremental......

5.Explain the types of diagrams in UML.

Answer - We have nine types of diagram in UML.....

6.What are the advantages of using UML?

Answer - UML breaks the complex system into discrete pieces that can be understood easily......

7.Building blocks of UML.
8.Relationship in the UML
9.Diagrams in the UML
Class Diagram
Object Diagram
Use case Diagram
Sequence Diagram
Collaboration Diagram
State Chart Diagram
Activity Diagram
Componant Diagram
Deployment Diagram

10.  What are the three types of modeling in UML?
ANSWER - Structural, behavioral, and architectural.

11. What is Architecture?
ANSWER - Takes care structural and behavioral aspect of a software system.
Includes software usage, functionality, performance, reuse, economic and technology constraints.

12. What are Messages?
ANSWER - Specification of a communication.     

13. What is component diagrams?

A component diagram is particularly useful with teams of larger size..........

14. What are the various components in sequence diagrams?

Actor: Actor represents an external user / end user who interact with the system. .........

15. What are the parts of a deployment diagram?

Nodes: A node represents any hardware component. The configuration of hardware is represented by attributes of nodes..........

16. What are the different elements of a collaboration diagram?

Object: The interaction between objects takes place in a system. An object is depicted by a rectangle with the name of the object, preceded by a colon and underline.........

17. Brief explanation of all elements in activity diagrams.

Activities: An activity indicates an action that performed in the system..........

18. Explain the different elements of a Use Case.

Use case diagram is a subset of various behaviour diagrams. Use case diagrams are used to provide.......... 

19. What is the difference between Activity and sequence diagrams?

The following are the difference between Activity and Sequence Diagrams...........


More UML links

What is component diagrams?

A component diagram is particularly useful with teams of larger size..........

What are the various components in sequence diagrams?

Actor: Actor represents an external user / end user who interact with the system. .........

What are the parts of a deployment diagram?

Nodes: A node represents any hardware component. The configuration of hardware is represented by attributes of nodes..........

UML 2.0 in Action A Project-Based Tutorial

Write your comment - Share Knowledge and Experience

Discussion Board
UML interview questions and answers

What is the difference between uses and extends?
The difference between uses and extends is that:
- Uses, use one’s functionality to complete the task whereas, extends, provide extended functionality or properties to a task to make it to run to completion.
- “A uses B” represent that task “A” has a subtask “B”. This tells that for A to go towards completion first the task Y has to be completed.
- “A extends B” represent that task “A” is a specific case of “B”. It tells that “A” has added functionality to make the process “B” runs to completion.

How do we represent private, public and protected in class diagrams?
Private, public and protected are the visibility properties in class diagrams that control the visibility options for a particular diagram. A symbol has to be represented with each property and method. (+) represent that it is a public property/method, which can be accessed from anywhere. (-) represent private property/method that can only be accessed within a component. (#) represent protected property/method that can only be seen within a component, not outside it.

What does associations, aggregation and composition in a class diagram mean?
- Association is a way of representing and grouping the classes to create a module. As, one class can’t represent the whole module in a project. To represent the whole module as one, you need to group them and have relationships between them.
- Aggregation and composition is part of association. Aggregation allows the object to exist without an aggregated object. For example, two classes given university and department, in this the university can’t exist without department so there is dependency of each other.
- Composition represents whole-part relationship; data in this usually flows in only one direction. For example: if the professor leaves the department still the department continues.

How the object diagrams gets represented in UML?
Object diagrams give a pictorial representation of class diagram. Object diagrams are represented with objects only and the relationships gets defined between them. The properties which it will contain are the Object Name: Class Name, Property Name, relationship type, actors etc. This is a way to represent overall information in a tidy manner.

Rohit Sharma 12-16-2011 03:42 AM

UML interview questions and answers

What is a UML Use Case Diagram (UCD), and when should you use it?
UML use case diagram is used to represent the entire functionality of the system. It uses actors, arrows and use cases to represent the system. They are very different from sequence diagrams or flow charts. They have 3 major elements through which they represent the entire system and these are as follows:
- Actors: outside/inside entities that interacts with the system
- Use cases: services which is used to let the system knows how to perform
- Lines or arrows: representing relationship between the actor and use cases
You should use the Use Case Diagram to represent the functionality of your system, where the details are of very high level.

How to identify the actors in a UCD?
To identify the actors in Use Case Diagram first of all, you have to identify the actions that has to be taken by the actors. Choose the actors such that the behavior of it doesn’t change. Actors in most of the cases will be in human form as you will be interacting with the system. If the system of yours will be interacting with other systems then make actors that are good to be used in there. Example: Interaction with the database system- interactions with the inventory management system has to be formulated and the actors to be decided just for interaction purpose with this existing system.

How a UML Use Case is Diagram different from a traditional flow chart?
- Use Case Diagram is represented in a top-down manner whereas, flow chart is represented in a time based way.
- Use Case Diagram shows the functionality in diagrammatic way whereas; flow chart shows the functionality in a linear fashion.
- Use Case Diagram describes the system all together at once whereas; flow chart doesn’t describe the system until you have all the points from the start.
- Use Case Diagram support the process of analysis and design much better than flow charts.

Rohit Sharma 12-16-2011 03:41 AM

UML interview questions and answers

Who maintains the UML specification and how is it updated?
The group that maintains the UML specification is termed as Object Management Group (OMG). The revisions take place according to the suggestions being passed from all around. Revision task force (RTF) is responsible to do all the minor revision to take effect on the UML specifications. Whereas, Requests for Proposal (RFP) group is taking care of all the major revisions

Why can't I easily interchange UML models between modeling tools?
You can’t easily interchange UML models between modeling tools, it is due to two technical reasons: XML tries to solve problems, that are difficult than exchanging UML models. it usually provides a mechanism to facilitate the exchange of any language into any other, which is being defined by OMG’s Metamodel object facility (MOF). 2nd reason is very specific that, it lacks information to have a reliable communication between its modeling tools.

On what basis I will select or choose an UML modeling tool?
You should have your own requirement for the modeling tool, to determine the type of support you require. There are few things, which has to be considered for choosing the UML modeling tool and it is as follows:
- Tool that includes the support for compliance with UML specification
- Tool that provides support for both notation and semantics of UML
- Tool that includes model simulation and code-generation
- Tool that includes model interchange with other UML tools
- Tool that includes tool customization properties

Rohit Sharma 12-16-2011 03:41 AM


Home | Want a Job? Submit Key Skills | Employer login | My key skills | About us | Sitemap | Contact us