300+ TOP MCQs on Unified Modelling Language and Answers UML

Unified Modelling Language UML Multiple Choice Questions

1. Object oriented analysis and design can be handled by the one who knows UML.
a) True
b) False

Answer: b
Clarification: The Unified Modeling Language includes a set of graphic notation techniques to create visual models of object-oriented software-intensive systems.

2. At Conceptual level Class diagrams should include
a) operations only
b) attributes only
c) both operations and attributes
d) none of the mentioned

Answer: b
Clarification: In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system’s classes, their attributes, operations, and the relationships among objects.

3. Select the statement true for activity diagrams.
a) They can be used to discover parallel activities
b) They are used to depict workflow for a particular business activity
c) Activity diagram do not tell who does what and are difficult to trace back to object models
d) All of the mentioned

Answer: d
Clarification: Activity diagrams are graphical representations of workflows of step wise activities and actions with support for choice, iteration and concurrency.

4. Constraints can be represented in UML by
a) {text}
b) [text].
c) Constraint
d) None of the mentioned

Answer: a
Clarification: Constraints are represented by {text string}.

5. What is an object?
a) An object is an instance of a class
b) An object includes encapsulation of data
c) An object is not an instance of a class
d) All of the mentioned

Answer: a
Clarification: An object is an instance of a class.

6. What is an abstract class?
a) A class that has direct instances, but whose descendants may have direct instances
b) A class that has direct instances, but whose descendants may not have direct instances
c) A class that has no direct instances, but whose descendants may have direct instances
d) All of the mentioned

Answer: c
Clarification: An abstract type is a type in a nominative type system which cannot be instantiated directly.

7. Which of the following are the valid relationships in Use Case Diagrams
a) Generalization
b) Include
c) Extend
d) All of the mentioned

Answer: d
Clarification: Generalization, include, extend all of these are valid relationships in use case diagrams.

8. Which of the following statement(s) is true about interaction diagrams?
a) Interaction diagrams are at their best when they deal with one main design flow and not multiple variants that can happen
b) Interaction diagrams are good at designing part or all of one use case’s functionality across multiple objects
c) Interaction diagrams allow the analyst to show iteration and conditional execution for messaging between objects
d) All of the mentioned

Answer: d
Clarification: Interaction diagram is used to describe some type of interactions among the different elements in the model. So this interaction is a part of dynamic behaviour of the system.

9. UML interfaces are used to:
a) specify required services for types of objects
b) program in Java, but not in C++ or Smalltalk
c) define executable logic to reuse across classes
d) define an API for all classes

Answer: a
Clarification: An interface is like a template design for a class that contains no data or implementation; only definitions for methods, properties etc.

10. Referring to the attached diagram, the arrow indicates:
a) Navigability
b) Dependency
c) Association
d) Refers to

Answer: a
Clarification: The arrows describe the ways you can navigate.

11. What is collection of model elements called?
A. box

B. dependency

C. uml packages

D. package members

Answer:D. package members
Clarification: uml package is collection of model elements called package members.

12. What types of units does Component follow?
A. modular unit

B. replaceable unit

C. unit with well defined interface

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: a component consists of modular, replaceable unit with well defined interface.

13. Which of these is true with respect to interfaces?
A. interfaces in component diagram defines relationship between components and environment

B. interfaces realized by a class or a component are required interfaces

C. interface on which a class or component depends are called provided interfaces

D. all of the mentioned

Answer:A. interfaces in component diagram defines relationship between components and environment
Clarification: interfaces realized by a class or a component are provided interfaces whereas interfaces on which a class or component depends are called required interfaces.

14. What is delegation connector?
A. a delegation connector ties a component interface to one or more internal classes or components

B. delegation connectors are solid arrows stereotyped <>

C. a delegation connector may also extend from an internal class to an external interface

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned options represents delegation connector and are true.

15. Which of these are diagrammatic heuristics?
A. use notes, constraints, properties and stereotypes to add information to uml models

B. use stereotypes to name dependencies

C. use packages to group elements in static models

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned are the respective heuristics to be followed for the uml models diagram.

16. Which of the following is true ?
A. a logical architecture is the realization of product as code and data files residing and executing on computational resource

B. a physical architecture is the configuration of product’s major constituents

C. all of the mentioned

D. none of the mentioned

Answer:D. none of the mentioned
Clarification: a physical architecture is the realization of product as code and data files residing and executing on computational resource whereas, a logical architecture is the configuration of product’s major constituents

17. Which among these are the common notations for deployment diagrams?
A. artifacts and nodes

B. stereotypes

C. components

D. all of the mentioned

Answer:A. artifacts and nodes
Clarification: artifacts and nodes are the common factors used for deployment diagram.

18. Which of the following is true?
A. a uml artifact is any physical representation of data used or produced during software development or software product operation

B. a node is a computational resource

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: all of the mentioned options are true definitions of the notations.

19. Which are the ways to represent nodes in a deployment diagram?
A. nodes instances are underlined identifiers of the form name:type

B. the name may be left off,indicating an unnamed instance of the type

C. the type may be left off, indicating a named instance with an unspecified type

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the above are the ways in which a node can be represented in a deployment diagram.

20. What does a deployment diagram consists of?
A. computational resource

B. communication path between resource

C. artifacts that execute resource

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: a deployment diagram consists of all the mentioned options.

21. Which of the following is incorrect in deployment diagram?
A. communication connections between nodes are shown by communication paths

B. communication paths are represented by dotted lines

C. artifacts are deployed inside nodes where they reside and execute

D. none of the mentioned

Answer:B. communication paths are represented by dotted lines
Clarification: communication paths are represented by solid lines and not dotted lines.

22. Which of these is correct?
A. artifacts instances and types have same names

B. artifact names and instances are underlines

C. all of the mentioned

D. none of the mentioned

Answer:A. artifacts instances and types have same names
Clarification: artifacts names are underlined but instances are not.

23. What is true about the artifacts?
A. an artifact is a physical entity

B. an artifact has spatio temporal location

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: all of the mentioned options

24. What are the ways in which artifacts can be deployed?
A. artifact symbol can be placed within node symbol

B. the artifact symbol can appear outside the node but be attached to it by dependency arrow from the artifact

C. artifact name can be listed inside the node symbol

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the above are the ways in which an artifact can be deployed.

25. Detailed design is further classified into which of the following?
A. mid-level design

B. low-level design

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: detailed design is further classified as mid level and low level design.

26. Mid-level design is the activity of specifying software at the level of medium-sized components such as?
A. compilation units or classes

B. their properties, relationship

C. interaction of units

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: mid-level design is the activity of specifying software at the level of medium-sized components such as compilation units or classes, their properties, relationship and interaction of units.

27. Which of these is correct?
A. low-level design is the activity of filling in small details at the lowest levels of abstraction

B. low-level design uses descriptr specification

C. mid-level design uses descriptr-paid specification

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: low level design uses descriptr-paid whereas mid level design uses descriptr alone.

28. A design document is a complete engineering design specification composed of?
A. software architecture document(sad)

B. detailed design document(ddd)

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: a design document is a complete engineering design specification composed of software architecture document(sad) and detailed design document(ddd).

29. The DDD template consists of which of the following?
A. mid level design and low level design

B. mapping between models

C. detailed design rationale

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: the ddd template consists of which of the following mid level design and low level design, mapping between models, detailed design rationale.

30. Which of these statements states Generalization connector?
A. a generalization connector is more like a link line between objects than an association line between classes

B. the generalization connector always indicates that two particular classes participate in the generalization relation, as a link line shows that two objects participate in a particular relation

C. never place a name, role names, or multiplicities on a generalization connector

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned statements about generation connector are true.

31. A provided interface can be shown in which of these ways?
A. to attach the stick of an interface lollipop symbol to a class or component

B. to connect a stereotyped class symbol representing the interface to the providing class or component using a special realization connector

C. both the ways mentioned above

D. none of the mentioned

Answer:C. both the ways mentioned above
Clarification: provided interface can be matched for both of the ways.

32. A required interface can be shown in which of the following ways?
A. to attach the stick of an interface socket symbol to a class or component

B. to connect the class or component requiring the interface to an interface ball with a dependency arrow

C. to connect the class or component to a stereotyped class symbol with a dependency arrow

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: a required interface can be show in all the three ways mentioned.

33. Which of the following is correct?
A. an attribute is an class variable when each object stores its own value for the attribute

B. an attribute can also be a instance variable, which means that there is only one value stored for the attribute that is shared by all class instances

C. an instance operation can be called using any object

D. a class operation is encapsulated in a class and can be called through the class

Answer:D. a class operation is encapsulated in a class and can be called through the class
Clarification: an attribute is an instance variable when each object stores its own value for the attribute whereas an attribute can also be a class variable, which means that there is only one value stored for the attribute that is shared by all class instances and an instance operation can be called only by using instance.

34. Which of the following is true?
A. the aggregation association represents the part-whole relation between the instances of the associated classes

B. in a composition association, each part can be related to only a single whole at one time

C. an association class represents a relation on the sets of instances of the classes it connects, and it also holds data and behavior the pertinent to the relation

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned statements are true.

35. Which of the following are the heuristics for class diagram?
A. never place a name, role names, or multiplicities on a generalization connector

B. use the interface ball and socket symbols to abstract interface details and a stereotyped class symbol to show details.

C. don’t italicize interface or operation names

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned are the statements for heuristics of class diagram.

36. Which of the following is true?
A. a transition is a change from one state to another

B. transitions may be spontaneous, but usually some event triggers them

C. an event is a noteworthy occurrence at a particular time; events have no duration

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all the mentioned statements are true.

37. Every finite automaton specification must contain which of the following?
A. descriptions of the automaton’s states in a way that allows them to be distinguished, such as by naming each one;

B. descriptions of transitions indicating each transition’s source state, its target state, and the events that trigger it;

C. designation of an initial state, the starting place for state transitions

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: every finite automaton specification contains- descriptions of the automaton’s states in a way that allows them to be distinguished, such as by naming each one;descriptions of transitions indicating each transition’s source state, its target state, and the events that trigger it; and designation of an initial state, the starting place for state transitions.

38. What does deterministic and non deterministic automaton?
A. a non-deterministic finite automaton is a finite automaton that has no spontaneous transitions and has a single transition that it must make in response to every event in each of its states

B. a deterministic finite automaton is one with multiple transitions

C. all of the mentioned

D. none of the mentioned

Answer:D. none of the mentioned
Clarification: a deterministic finite automaton is a finite automaton that has no spontaneous transitions and has a single transition that it must make in response to every event in each of its states and a non-deterministic finite automaton is one with multiple transitions.

39. Which of the following determines state diagram?
A. the uml notation for specifying finite automata is the state diagram

B. in state diagrams, states are represented by rounded rectangles

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: all of the mentioned are true for state diagram.

40. Which of the following represents State Diagram?
A. the finite automaton initial state is designated by a special initial pseudo-state depicted as a large black dot at the tail of an arrow pointing at the initial state

B. a finite automaton may execute forever or it may halt in a final state

C. transitions are represented by solid arrows labeled with one or more transition strings that describe the circumstances under which the transition is triggered and the actions that may ensue

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned are true for state diagram.

41. Which of the following is true?
A. a state symbol without a nested state compartment represents a complex state

B. one with a nested state compartment represents a simple state

C. all of the mentioned

D. none of the mentioned

Answer:D. none of the mentioned
Clarification: a state symbol without a nested state compartment represents a simple state and one with a nested state compartment represents a complex state.

42. Which of the following are composite states?
A. a sequential composite state

B. a concurrent composite state

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: there are two kinds of composite states -a sequential composite state and a concurrent composite state.

43. What is sequential and concurrent composite state means?
A. a concurrent composite state contains a single state diagram composed of sub- states or inner states and the transitions between them

B. a sequential composite state contains two or more sequential state diagrams in regions separated by dashed lines called concurrent region boundary lines

C. all of the mentioned

D. none of the mentioned

Answer:D. none of the mentioned
Clarification: a sequential composite state contains a single state diagram composed of sub- states or inner states and the transitions between them and a concurrent composite state contains two or more sequential state diagrams in regions separated by dashed lines called concurrent region boundary lines.

44. Sequential composite states simplify state models in two ways?
A. they organize states into hierarchies

B. they consolidate many transitions

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: all of the mentioned are the two ways to simplify sequential composite states.

45. What is Interaction diagram?
A. interaction diagrams are the uml notations for dynamic modeling of collaborations

B. interaction diagrams are a central focus of engineering design

C. all of the mentioned

D. none of the mentioned

Answer:C. all of the mentioned
Clarification: interaction diagram are the uml notations for dynamic modeling of collaborations,a central focus of engineering design.

46. What are the different interaction diagram notations does UML have?
A. a sequence diagram

B. a communication diagram

C. an interaction overview diagram

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: uml has four different interaction diagram notations – a sequence diagram, a communication diagram, an interaction overview diagram, a timing diagram.

47. What is a sequence diagram?
A. a diagram that shows interacting individuals along the top of the diagram and messages passed among them arranged in temporal order down the page

B. a diagram that shows messages super imposed on a diagram depicting collaborating individuals and the links among them

C. a diagram that shows the change of an individual’s state over time

D. all of the mentioned

Answer:A. a diagram that shows interacting individuals along the top of the diagram and messages passed among them arranged in temporal order down the page
Clarification: a sequence diagram shows interacting individuals along the top of the diagram and messages passed among them arranged in temporal order down the page.

48. Which of the following is true about Sequence frames?
A. a sequence diagram has a frame consisting of a rectangle with a pentagon inits upper left-hand corner

B. the pentagon is its name compartment ; the interaction is represented inside the rectangle.

C. the string in the name compartment has the form sd interaction identifier where interaction identifier is either a simple name or an operation specification with the same format as in a class diagram

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned statements are followed in sequence frames.

49. What is a lifeline?
A. it is a frame consisting of a rectangle with a pentagon inits upper left-hand corner

B. it is a rectangle containing an identifier with a dashed line extending below the rectangle

C. it is a name compartment ; the interaction is represented inside the rectangle

D. none of the mentioned

Answer:B. it is a rectangle containing an identifier with a dashed line extending below the rectangle
Clarification: lifeline is a rectangle containing an identifier with a dashed line extending below the rectangle.

50. What does a message mean?
A. it passes all communications from one object to another and are represented by message arrows in sequence diagrams

B. message goes from the sending object’s lifeline to the receiving object’s lifeline

C. it is a rectangle containing an identifier with a dashed line extending below the rectangle

D. all of the mentioned

Answer:A. it passes all communications from one object to another and are represented by message arrows in sequence diagrams
Clarification: all communications from one object to another are called messages and are represented by message arrows in sequence diagrams.

51. What are the three different types of message arrows?
A. synchronous, asynchronous, asynchronous with instance creation

B. self, multiplied,instance generator

C. synchronous, asynchronous, synchronous with instance creation

D. none of the mentioned

Answer:C. synchronous, asynchronous, synchronous with instance creation
Clarification: three different types of message arrows are- synchronous, asynchronous, synchronous with instance creation.

52. Which of these are true with respect to the message arrows?
A. the synchronous message arrow is used when a sending individual continues execution after sending the message

B. the asynchronous message arrow is used when a sending individual suspends execution after sending the message

C. the dashed arrow is used either to show the return of control from a synchronous message or to create a new entity

D. all of the mentioned

Answer:C. the dashed arrow is used either to show the return of control from a synchronous message or to create a new entity
Clarification: the asynchronous message arrow is used when a sending individual continues execution after sending the message and the synchronous message arrow is used when a sending individual suspends execution after sending the message.

53. When is the operation executing, suspended and active?
A. an operation is executing when some process is actually running its code

B. an operation is suspended when it sends a synchronous message and it is waiting for the message to return

C. an operation is active when it is either executing or suspended

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: all of the mentioned statements are true and respond to operations executing, suspended and active states.

54. What is break fragment?
A. an fragment which has one or more guarded operands whose guards are mutually exclusive—that is, at most one of them can be true at any time

B. a fragment which has a single operand that is performed instead of the remainder of the enclosing fragment or diagram if the operand guard is true

C. a fragment which has a single operand that may or may not have a guard

D. none of the mentioned

Answer:B. a fragment which has a single operand that is performed instead of the remainder of the enclosing fragment or diagram if the operand guard is true
Clarification: a break fragment has a single operand that is performed instead of the remainder of the enclosing fragment or diagram if the operand guard is true.

55. What are the heuristics which sequencing diagram follows?
A. put pairs of lifelines that interact heavily next to one another

B. position lifelines to make message arrows as short as possible

C. position lifelines to make message arrows go from left to right

D. all of the mentioned

Answer:D. all of the mentioned
Clarification: sequencing diagram follows all the mentioned heuristics.

Unified Modelling Language UML Objective Questions with Answers Pdf Download Online Quiz Test

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top