100% found this document useful (5 votes)
4K views15 pages

Uml MCQ

The document contains a set of multiple choice questions about Unified Modeling Language (UML) diagrams and concepts. It tests understanding of the different types of UML diagrams like use case, class, sequence, state chart diagrams. It also covers UML modeling concepts like static vs dynamic views, relationships like generalization and aggregation.

Uploaded by

I'm Noob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (5 votes)
4K views15 pages

Uml MCQ

The document contains a set of multiple choice questions about Unified Modeling Language (UML) diagrams and concepts. It tests understanding of the different types of UML diagrams like use case, class, sequence, state chart diagrams. It also covers UML modeling concepts like static vs dynamic views, relationships like generalization and aggregation.

Uploaded by

I'm Noob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

UML MCQ’s

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
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. 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.
10. Which UML diagram’s symbols are shown below?

a) Deployment diagram
b) Collaboration Diagram
c) Component Diagram
d) Object Diagram
Answer: a

11. Which UML diagram is shown below?


a) Use Case
b) Collaboration Diagram
c) Class Diagram
d) Object Diagram

Answer: a

12. Which UML diagram is shown below?

a) Use Case
b) State Chart
c) Activity
d) Object Diagram
Answer: b

13. Which UML diagram is shown below?

a) Use Case
b) Collaboration Diagram
c) Sequence Diagram
d) Object Diagram
Answer: c
6. Which UML diagram is shown below?

a) Deployment diagram
b) Collaboration Diagram
c) Object Diagram
d) Class Diagram
Answer: d
7. Which UML diagram is shown below?

a) Activity
b) State chart
c) Sequence
d) Collaboration
Answer: a
8. Which UML diagram is shown below?

a) Component
b) Deployment
c) Use Case
d) DFD
Answer: a

1. Which of the following is not needed to develop a


system design from concept to detailed object-oriented
design?
a) Designing system architecture
b) Developing design models
c) Specifying interfaces
d) Developing a debugging system
Answer: d
Explanation: The debugging system is a part of testing
phase.

2. Which of the following is a dynamic model that shows


how the system interacts with its environment as it is
used?
a) system context model
b) interaction model
c) environmental model
d) both system context and interaction
Answer: b

3. Which of the following is a structural model that


demonstrates the other systems in the environment of the
system being developed?
a) system context model
b) interaction model
c) environmental model
d) both system context and interaction
Answer: a
Explanation: The context model of a system may be
represented using associations. Associations simply show
that there are some relationships between the entities
involved in the association.
4. Which of the following come under system control?
a) Reconfigure
b) Shutdown
c) Powersave
d) All of the mentioned
Answer: d
Explanation: Functionalities are governed by the system.

5. We use _________ where various parts of system use


are identified and analyzed in turn.
a) tangible entities
b) scenario-based analysis
c) design-based analysis
d) none of the mentioned
Answer: b
Explanation: Use a scenario-based analysis where various
scenarios of system use are identified and analyzed in
turn.

6. Which model describes the static structure of the


system using object classes and their relationships?
a) Sequence model
b) Subsystem model
c) Dynamic model
d) Structural model
Answer: d
Explanation: Important relationships that may be
documented at this stage are generalization (inheritance)
relationships, uses/used-by relationships, and composition
relationships.

7. Which model shows the flow of object interactions?


a) Sequence model
b) Subsystem model
c) Dynamic model
d) Both Sequence and Dynamic model
Answer: a
Explanation: Sequence model are represented using a
UML sequence or a collaboration diagram and are
dynamic models.

8. If the system state is Shutdown then it can respond to


which of the following message?
a) restart()
b) reconfigure()
c) powerSave()
d) all of the mentioned
Answer: d
Explanation: A restart() message causes a transition to
normal operation. Both the powerSave() and reconfigure()
messages cause a transition to a state in which the system
reconfigures itself.

9. Which message is received so that the system moves to


the Testing state, then the Transmitting state, before
returning to the Running state?
a) signalStatus()
b) remoteControl()
c) reconfigure()
d) reportStatus()
Answer: d

10. Open source development involves making the source


code of a system publicly available.
a) True
b) False

Answer: a
Explanation: This means that many people can propose
changes and improvements to the software.

You might also like