1. Which of the following UML diagrams has a static view?
a) Collaboration
b) Use case
c) State chart
d) Activity
Answer: b
Explanation: A use case diagrams captures only the functionality of the system
whereas a dynamic model/view captures the functions as well as the action.
2. What type of core-relationship is represented by the symbol in the figure
below?
a) Aggregation
b) Dependency
c) Generalization
d) Association
Answer: a
Explanation: None.
3. Which core element of UML is being shown in the figure?
a) Node
b) Interface
c) Class
d) Component
Answer: d
Explanation: The figure is self explanatory. A component is a modular,
significant and replaceable part of the system that packages implementation
and exposes a set of interfaces.
.
4. What type of relationship is represented by Shape class and Square ?
a) Realization
b) Generalization
c) Aggregation
d) Dependency
Answer: b
Explanation: The generalization relationship is also known as the inheritance
relationship. In the figure Square is the subclass of superclass shape.
5. Which diagram in UML shows a complete or partial view of the structure of a
modeled system at a specific time?
a) Sequence Diagram
b) Collaboration Diagram
c) Class Diagram
d) Object Diagram
Answer: d
Explanation: An object diagram focuses on some particular set of object
instances and attributes, and the links between the instances. It is a static
snapshot of a dynamic view of the system.
6. Interaction Diagram is a combined term for
a) Sequence Diagram + Collaboration Diagram
b) Activity Diagram + State Chart Diagram
c) Deployment Diagram + Collaboration Diagram
d) None of the mentioned
Answer: a
Explanation: Interaction diagram are used to formalize the dynamic behavior of
the system.
7. Structure diagrams emphasize the things that must be present in the system
being modeled.
a) True
b) False
Answer: a
Explanation: Since structure diagrams represent the structure they are used
extensively in documenting the architecture of software systems
8. Which of the following diagram is time oriented?
a) Collaboration
b) Sequence
c) Activity
d) None of the mentioned
Answer: b
Explanation: A sequence diagrams timeline along which tasks are completed.
9. Which of the following is a building block of UML?
a) Things
b) Relationships
c) Diagrams
d) All of the mentioned
Answer: d
Explanation: All are the building blocks of UML which are further sub-
categorized.
10. Classes and interfaces are a part of
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
Answer: a
Explanation: Structural things are mostly static parts of a model, representing
elements that are either conceptual or physical.
11.What is a collection of operations that specify a service of a class or
component?
a) Use Case
b) Actor
c) Interface
d) Relationship
Answer: c
Explanation: None.
12. What is a physical element that exists at runtime in UML?
a) A node
b) An interface
c) An activity
d) None of the mentioned
Answer: a
Explanation: A node represents a computational resource.
13. What can be requested from any object of the class to affect behavior?
a) object
b) attribute
c) operation
d) instance
Answer: c
Explanation: An operation is the implementation of a service that can be
requested from any object of the class to affect behavior.
14. Which things are dynamic parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
Answer: b
Explanation: These are the verbs of a model, representing behavior over time
and space.
15. Which diagram in UML emphasizes the time-ordering of messages?
a) Activity
b) Sequence
c) Collaboration
d) Class
Answer: b
Explanation: This diagram is a model describing how groups of objects
collaborate in some behavior over time.
16. Object diagram captures the behavior of a single use case.
a) True
b) False
Answer: b
17. If you are working on real-time process control applications or systems that
involve concurrent processing, you would use a
a) Activity diagram
b) Sequence diagram
c) Statechart diagram
d) Object diagram
Answer: c
Explanation: A statechart diagram shows a state machine, consisting of states,
transitions, events, and activities.
18. Which diagram shows the configuration of run-time processing elements?
a) Deployment diagram
b) Component diagram
c) Node diagram
d) ER-diagram
Answer: a
Explanation: A Deployment diagram shows the configuration of run-time
processing elements and the software components, processes, and objects.
19. Which things in UML are the explanatory parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
Answer: d
Explanation: It include a note which is simply a symbol for rendering constraints
and comments attached to an element or a collection of elements.
20. Which of the following term is best defined by the statement:”a structural
relationship that specifies that objects of one thing are connected to objects of
another”?
a) Association
b) Aggregation
c) Realization
d) Generalization
Answer: a
Explanation: None.
21. What refers to the value associated with a specific attribute of an object and
to any actions or side?
a) Object
b) State
c) Interface
d) None of the mentioned
Answer: b
Explanation: In a state chart diagram, effects occur when the attribute’s value
changes.
22. 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
Explanation: Activity diagrams are graphical representations of workflows of step wise activities and
actions with support for choice, iteration and concurrency.
23. Constraints can be represented in UML by
a) {text}
b) [text].
c) Constraint
d) None of the mentioned
Answer: a
Explanation: Constraints are represented by {text string}.
24. 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
Explanation: An object is an instance of a class.
25. 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
Explanation: An abstract type is a type in a nominative type system which cannot be instantiated
directly.
26. 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
Explanation: Generalization, include, extend all of these are valid relationships in use case diagrams.
27. 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
Explanation: 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.
28. 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
Explanation: An interface is like a template design for a class that contains no data or implementation;
only definitions for methods, properties etc.
29. Referring to the attached diagram, the arrow indicates:
a) Navigability
b) Dependency
c) Association
d) Refers to
Answer: a
Explanation: The arrows describe the ways you can navigate.
30. How many diagrams are here in Unified Modelling Language?
a) six
b) seven
c) eight
d) nine
Answer: d
Explanation: The nine UML diagrams include use-case, sequence, collaboration,
activity, state-chart, deployment, class, object and component.
31. Which UML diagram is shown below?
a) Use Case
b) Collaboration Diagram
c) Class Diagram
d) Object Diagram
Answer: a
Explanation: None.
32. Which UML diagram is shown below?
a) Use Case
b) State Chart
c) Activity
d) Object Diagram
Answer: b
Explanation: None.
33. Which UML diagram is shown below?
a) Use Case
b) Collaboration Diagram
c) Sequence Diagram
d) Object Diagram
Answer: c
Explanation: None.
34. Which UML diagram’s symbols are shown below?
a) Deployment diagram
b) Collaboration Diagram
c) Component Diagram
d) Object Diagram
Answer: a
Explanation: None.
35. Which UML diagram is shown below?
a) Deployment diagram
b) Collaboration Diagram
c) Object Diagram
d) Class Diagram
Answer: d
Explanation: None.
7. Which UML diagram is shown below?
a) Activity
b) State chart
c) Sequence
d) Collaboration
Answer: a
Explanation: None.
36. Which UML diagram is shown below?
a) Component
b) Deployment
c) Use Case
d) DFD
Answer: a
Explanation: None.