UML (Unified Modeling Language) MCQs

UML (Unified Modeling Language) MCQs

These UML (Unified Modeling Language) multiple-choice questions and their answers will help you strengthen your grip on the subject of UML (Unified Modeling Language). You can prepare for an upcoming exam or job interview with these 10+ UML (Unified Modeling Language) MCQs.
So scroll down and start answering.

1: Aggregation (encapsulation) relationship is represented in UML notation by:

A.   Line without an arrow

B.   Line with hollow diamond at one end

C.   Line with solid diamond at one end

D.   Line with an arrow at one end

2: In the class diagram, inside each class what is to be printed?

A.   Its name and operations

B.   Its name, attributes and operations

C.   Its name and attributes

D.   Its name, attributes, operations and derived class

3: What can UML interfaces be used for?

A.   To provide concrete classes with the stereotype

B.   To specify required services for types of objects

C.   To program in Java and C++, but not in C#

D.   To define executable logic that can be reused in several classes

4: Which diagram in UML is used to describe the physical components their distribution and association?

A.   Component diagram

B.   Interaction diagram

C.   Deployment diagram

D.   Object diagram

5: The object is represented in UML notation by:

A.   A rectangular box with the instantiated object, separated from the class name by a

B.   A thin vertical line with key method calls shown by outward arrow

C.   A rectangular box with the name of the object

D.   A comment or a explanatory note associated with a class

6: Inheritance relationships are represented in the UML notation by:

A.   Lines with solid triangular arrow at both ends

B.   Lines with solid diamond at one end

C.   Lines with hollow diamond at one end

D.   Lines with hollow triangular arrow at one end

7: The interface is represented in UML notation by:

A.   Dotted circle with the name inside it

B.   Circle with the name below the circle

C.   Dotted eclipse with the name inside the eclipse

D.   Rectangular box with the name of interface inside it

8: Which diagram is NOT commonly used for illustrating use cases?

A.   Use case diagram

B.   Collaboration diagram

C.   Activity diagram

D.   System sequence diagram

9: If you need to show the physical relationship between software components and the hardware in the delivered system, which diagram can you use?

A.   Network diagram

B.   Component diagram

C.   Deployment diagram

D.   Class diagram

10: What is true about UML stereotypes?

A.   The stereotype {frozen} indicates that the UML element cannot be changed

B.   UML Profiles can be stereotyped for backward compatibility

C.   A stereotype is used for extending the UML language

D.   A stereotyped class must be abstract

11: Key elements of use-case diagrams are:

A.   Uses, cases

B.   Actors, use cases

C.   People, computer

D.   People, classes and objects