Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

UML Diagrams Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

In UML, what is the main purpose of a class diagram?

a)

To model the dynamic behavior of objects

b)

To depict the structural relationships between classes

c)

To represent the sequence of interactions

d)

To model the physical deployment of artifacts

2.

Which diagram in UML is used to model the sequence of messages exchanged between objects?

a)

Class Diagram

b)

Object Diagram

c)

Sequence Diagram

d)

Activity Diagram

3.

What term describes the depiction of asynchronous messages in a sequence diagram?

a)

Iterated messages

b)

Call-back mechanism

c)

Broadcast messages

d)

Asynchronous priority

4.

Which of the following UML diagrams shows the flow of control in an algorithm or process?

a)

Use Case Diagram

b)

Activity Diagram

c)

State Machine Diagram

d)

Component Diagram

5.

What UML diagram is used to represent the lifecycle of an object?

a)

Use Case Diagram

b)

Sequence Diagram

c)

State Machine Diagram

d)

Deployment Diagram

6.

Which of the following is not a term associated with Collaboration Diagrams?

a)

Depicting a message

b)

Polymorphism in collaboration diagrams

c)

Iterated messages

d)

Asynchronous messages

7.

In UML, which diagram is used to model the physical deployment of software components?

a)

Class Diagram

b)

Deployment Diagram

c)

Package Diagram

d)

Use Case Diagram

8.

What is the purpose of a Use Case Diagram in UML?

a)

To model the static structure of a system

b)

To depict the interactions between actors and the system

c)

To represent the internal behavior of the system

d)

To model the physical deployment of artifacts

9.

Which UML diagram is used to represent interactions among objects in terms of messages?

a)

Sequence Diagram

b)

Collaboration Diagram

c)

Class Diagram

d)

State Machine Diagram

10.

What UML diagram shows the overall architecture of a system?

a)

Use Case Diagram

b)

Component Diagram

c)

Deployment Diagram

d)

Sequence Diagram

11.

Which of the following is used to represent asynchronous messages with priority in a sequence diagram?

a)

Broadcast messages

b)

Iterated messages

c)

Call-back mechanism

d)

Asynchronous priority

12.

In UML, which diagram depicts object instances at a specific point in time?

a)

Class Diagram

b)

Object Diagram

c)

Sequence Diagram

d)

Activity Diagram

13.

Which diagram in UML is used to represent the dependencies between different packages in a system?

a)

Deployment Diagram

b)

Package Diagram

c)

Class Diagram

d)

Component Diagram

14.

What is the primary purpose of a component diagram in UML?

a)

To model the physical layout of the system

b)

To represent the software architecture

c)

To depict the static structure of the system

d)

To illustrate the deployment of software artifacts

15.

Which of the following diagrams is used to model parallel or concurrent activities in a system?

a)

State Machine Diagram

b)

Sequence Diagram

c)

Activity Diagram

d)

Component Diagram