0% found this document useful (0 votes)
17 views2 pages

UML Class Diagram Essentials Explained

The document contains a series of multiple-choice questions related to Class Diagrams in UML, covering their purpose, types, notations, and relationships. Key concepts include the distinction between different types of diagrams, visibility notations for attributes, and principles such as the Substitution Principle. It also addresses the meaning of multiplicity and the characteristics of abstract classes.

Uploaded by

hungnk.24ce
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

UML Class Diagram Essentials Explained

The document contains a series of multiple-choice questions related to Class Diagrams in UML, covering their purpose, types, notations, and relationships. Key concepts include the distinction between different types of diagrams, visibility notations for attributes, and principles such as the Substitution Principle. It also addresses the meaning of multiplicity and the characteristics of abstract classes.

Uploaded by

hungnk.24ce
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

::Q01:: What is the main purpose of a Class Diagram in UML?

~ A. To represent the dynamic behavior of the system


= B. To represent the static view of the system
~ C. To model the flow of control between activities
~ D. To show the interaction between objects over time
//---------------------------------------------------------------------------------
---------------------
::Q02:: Which type of Class Diagram is developed in the Analysis phase and
describes the system from the "user point of view"?
~ A. Design Class Diagram
= B. Conceptual/Analysis Class Diagram (Domain Model)
~ C. Deployment Diagram
~ D. Object Diagram
//---------------------------------------------------------------------------------
---------------------
::Q03:: In a Class Diagram, what notation is used to indicate an attribute with
Private visibility?
~ A. + (Public)
~ B. # (Protected)
= C. - (Private)
~ D. ~ (Package/Default)
//---------------------------------------------------------------------------------
---------------------
::Q04:: How is a Derived attribute typically notated in UML?
= A. It is preceded by a forward slash (/)
~ B. It is preceded by an asterisk (*)
~ C. It is preceded by a hash symbol (#)
~ D. It is preceded by a plus sign (+)
//---------------------------------------------------------------------------------
---------------------
::Q05:: Which relationship represents the meaning "a class is a part of another
class" and is modeled with a hollow diamond?
~ A. Composition
~ B. Inheritance
= C. Aggregation
~ D. Dependency
//---------------------------------------------------------------------------------
---------------------
::Q06:: Which relationship is a strong form of Aggregation where "if the whole is
destroyed then parts will be also destroyed"?
~ A. Association
~ B. Aggregation
~ C. Inheritance
= D. Composition
//---------------------------------------------------------------------------------
---------------------
::Q07:: What is the meaning of the Multiplicity 1..* in a Class Diagram?
~ A. Zero or one
~ B. One and only one
~ C. Zero or many
= D. One to many (from one to many)
//---------------------------------------------------------------------------------
---------------------
::Q08:: Which principle states that "All subclass objects can play the role of an
object of its parent-class"?
= A. Substitution Principle
~ B. Principle of Least Astonishment
~ C. Interface Segregation Principle
~ D. Open/Closed Principle
//---------------------------------------------------------------------------------
---------------------
::Q09:: An Abstract class is defined as a class that:
~ A. Only contains attributes
~ B. Only contains operations
= C. Has no instances/objects
~ D. Can be instantiated but not inherited
//---------------------------------------------------------------------------------
---------------------
::Q10:: Which diagram represents a static view of the instances of the elements
appearing in Class Diagrams?
~ A. Activity Diagram
~ B. Sequence Diagram
~ C. Deployment Diagram
= D. Object Diagram

You might also like