Home »
Software Engineering MCQs
MCQ | UML views and UML diagrams
Here, we have a set of multiple-choice questions and answers (quiz) on UML views and UML diagrams in software engineering. For any help, you can refer to the previous articles on the same topic.
Submitted by Monika Sharma, on January 30, 2021
UML Views and UML Diagrams MCQs
Q1. How many views of the software can be represented through the Unified Modeling Language (UML)?
- Four
- Five
- Nine
- None of the above
Answer: b. Five
Explanation:
There are 5 views that can be represented through the UML: User's view, Behavioral View, Structural View, Environmental View, implementation view.
Q2. Which of the following UML diagrams represent the structural View of the software?
- Class diagram
- Object diagram
- Both a. and b.
- None of the above
Answer: c. Both a. and b.
Explanation:
There are 2 UML diagrams that represent the structural view of the software: Class diagrams and the object diagrams.
Q3.Which of the following is not a UML diagram?
- Class diagram
- Object Diagram
- Interface diagram
- Use case model
Answer: c. Interface diagram
Explanation:
There is no UML diagram such as interface diagram.
Q4. Which of the following statements is true?
- There are 5 views that are represented through the Unified Modelling Language (UML).
- These 5 views in UML are represented through 9 UML diagrams.
- Only i is true
- Only ii is true
- Both i and ii are true
- None of them is true
Answer: c. Both i and ii is true
Explanation:
Both the stated statements are true because there are 5 views of the UML namely: User's view, Behavioral View, Structural View, Environmental View, implementation view. And these views are represented through 9 UML diagrams which are as follows: Use case diagram, Sequence Diagram, Collaboration Diagram, State chart Diagram, Activity Diagram, Class Diagrams, Object Diagrams, Deployment diagram, Component Diagram.
Q5. Which of the following views represents the interaction of the user with the software but tells nothing about the internal working of the software?
- Use case diagram
- Activity diagram
- Class diagram
- All of the above
Answer: a. Use case diagram
Explanation:
Use case diagram is the one in which the user’s part of interaction with the software is defined. No internal working of the software is defined in this model.
Q6. UML describes the real-time systems
- True
- False
Answer: a) True
Explanation:
UML describes the real-time systems. It is very important to make a conceptual model and then proceed gradually.
Q7. UML ... gives an overview of a software system.
- Class diagram
- List of attributes
- List of operations
- All of the above
Answer: a) Class diagram
Explanation:
UML Class diagram gives an overview of a software system by displaying classes, attributes, operations, and relationships.
Q8. An UML diagram which has a static view?
- Use case
- Class diagram
- List
- None of these
Answer: a) Use case
Explanation:
A case diagram is used to take the functionality, while the functions and the operation are captured by a dynamic model/view.
Q9. ... shows a full or partial view of the structure within a precise time for a modelled system?
- Sequence Diagram
- Object Diagram
- Collaboration Diagram
- Class Diagram
Answer: b) Object Diagram
Explanation:
An object diagram emphasizes a unique set of instances and attributes of objects and the relations between the instances. It is a static snapshot of the system with a dynamic view.
Q10. Sequence diagram is ... oriented.
- Time
- Class
- Activity
- None of these
Answer: a) Time
Explanation:
A sequence diagram's timeline along which tasks are completed.
Q11. UML is not a programming language; it is rather a visual language.
- True
- False
Answer: a) True
Explanation:
UML is a visual language, not a programming language.
Q12. Structural Diagrams do not capture static aspects or structure of a system.
- True
- False
Answer: b) False
Explanation:
tructural Diagrams capture static aspects or structure of a system. Structural Diagrams include Component Diagrams, Object Diagrams, Class Diagrams and Deployment Diagrams.
Q13. UML Class and objects consist of ...
- Digits
- Letters
- Punctuation Characters
- All of these
Answer: d) All of these
Explanation:
UML Class and objects are the combinations of Digits, Letters and Punctuation Characters.
Q14. ... diagram is time-oriented?
- Sequence
- Collaboration
- Activity
- None of the mentioned
Answer: a) Sequence
Explanation:
A sequence diagram is time-oriented.
Q15. Behavior Diagrams includes ...
- Use Case Diagrams
- State Diagrams
- Activity Diagrams
- All of these
Answer: d) All of these
Explanation:
Behavior Diagrams Capture dynamic aspects or behaviour of the system. Behaviour diagrams include Use Case Diagrams, State Diagrams, Activity Diagrams and Interaction Diagrams.
Q16. Composite Structure Diagram is used to represent the internal structure of a class.
- True
- False
Answer: a) True
Explanation:
The Composite Structure Diagram is used to represent the internal structure of a class using composite structure diagrams. The relationship between components and their configuration is defined by a composite structure diagram that defines how the classifier (class, part, or deployment node) operates.
Q17. Things in UML can be ...
- Structural
- Behavioural
- Grouping
- All of these
Answer: d) All of these
Explanation:
Things are the most important building blocks of UML. Things can be Structural, Behavioral, Grouping and Annotation.
Q18. One of the Characteristics of UML?
- It is a generalized modelling language.
- It is distinct from other programming languages like C++, Python, etc.
- It is interrelated to object-oriented analysis and design.
- It is used to visualize the workflow of the system.
- All of these
Answer: e) All of these
Explanation:
All of the mentioned points are the key characteristics of UML.
Q19. A conceptual model in UML is composed of several interrelated concepts. It makes it easy to understand the objects and how they interact with each other.
- True
- False
Answer: a) True
Explanation:
In UML, a conceptual model is composed of interrelated concepts. It describes the objects and how they interact with each other.
Q20. Deployment Diagram is used to represent system hardware and its software.
- True
- False
Answer: a) True
Explanation:
To represent the device hardware and its software, Deployment Diagrams are used. It informs us the components of the hardware exist and what components of the software run on them.