ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

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

Q1. How many views of the software can be represented through the Unified Modeling Language (UML)?

  1. Four
  2. Five
  3. Nine
  4. 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?

  1. Class diagram
  2. Object diagram
  3. Both a. and b.
  4. 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?

  1. Class diagram
  2. Object Diagram
  3. Interface diagram
  4. 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?

  1. There are 5 views that are represented through the Unified Modelling Language (UML).
  2. These 5 views in UML are represented through 9 UML diagrams.
  1. Only i is true
  2. Only ii is true
  3. Both i and ii are true
  4. 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?

  1. Use case diagram
  2. Activity diagram
  3. Class diagram
  4. 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.


ADVERTISEMENT

Q6. UML describes the real-time systems

  1. True
  2. 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.

  1. Class diagram
  2. List of attributes
  3. List of operations
  4. 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?

  1. Use case
  2. Class diagram
  3. List
  4. 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?

  1. Sequence Diagram
  2. Object Diagram
  3. Collaboration Diagram
  4. 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.

  1. Time
  2. Class
  3. Activity
  4. None of these

Answer: a) Time

Explanation:

A sequence diagram's timeline along which tasks are completed.


ADVERTISEMENT

Q11. UML is not a programming language; it is rather a visual language.

  1. True
  2. 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.

  1. True
  2. 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 ...

  1. Digits
  2. Letters
  3. Punctuation Characters
  4. 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?

  1. Sequence
  2. Collaboration
  3. Activity
  4. None of the mentioned

Answer: a) Sequence

Explanation:

A sequence diagram is time-oriented.


Q15. Behavior Diagrams includes ...

  1. Use Case Diagrams
  2. State Diagrams
  3. Activity Diagrams
  4. 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.


ADVERTISEMENT

Q16. Composite Structure Diagram is used to represent the internal structure of a class.

  1. True
  2. 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 ...

  1. Structural
  2. Behavioural
  3. Grouping
  4. 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?

  1. It is a generalized modelling language.
  2. It is distinct from other programming languages like C++, Python, etc.
  3. It is interrelated to object-oriented analysis and design.
  4. It is used to visualize the workflow of the system.
  5. 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.

  1. True
  2. 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.

  1. True
  2. 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.



ADVERTISEMENT



ADVERTISEMENT



Comments and Discussions

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.