wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Hexagonal Architecture

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.

What is hexagonal architecture also known as?

a)

Clean architecture

b)

Model-View-Controller (MVC)

c)

Layered architecture

d)

Event-driven architecture

2.

What is the primary focus of hexagonal architecture?

a)

Business logic

b)

User interface

c)

Data storage

d)

Networking

3.

What is the purpose of the input boundary in hexagonal architecture?

a)

To receive input from external systems

b)

To store data in a database

c)

To process business logic

d)

To display data to the user

4.

What is the output boundary in hexagonal architecture responsible for?

a)

Returning data to external systems

b)

Displaying data to the user

c)

Storing data in a database

d)

Processing business logic

5.

Which of the following is an advantage of hexagonal architecture over layered architecture?

a)

Simpler to implement

b)

More flexible and adaptable

c)

Higher performance

d)

More secure

6.

Which of the following is not a core principle of hexagonal architecture?

a)

Separation of concerns

b)

Dependency inversion

c)

Test-driven development

d)

Domain-driven design

7.

What is the purpose of the domain layer in hexagonal architecture?

a)

To contain the core business logic

b)

To handle user input and output

c)

To manage data storage and retrieval

d)

To handle network communication

8.

Which of the following is an example of a system that could benefit from hexagonal architecture?

a)

A simple command-line tool

b)

A social media platform

c)

An online store

d)

A calculator app

9.

What is the purpose of the adapters in hexagonal architecture?

a)

To connect the application to external systems

b)

To process business logic

c)

To handle user input and output

d)

To store data in a database

10.

What is the role of the application layer in hexagonal architecture?

a)

To provide the user interface

b)

To contain the core business logic

c)

To handle data storage and retrieval

d)

To manage network communication

11.

What is the primary benefit of hexagonal architecture?

a)

Easier testing and maintenance

b)

Higher performance

c)

Better user experience

d)

Lower development cost

12.

Which of the following is an example of a system that could benefit from layered architecture?

a)

A web-based game

b)

A mobile banking app

c)

A weather app

d)

A social media platform

13.

Which of the following is not a characteristic of a well-designed hexagonal architecture?

a)

Loose coupling between components

b)

High cohesion within components

c)

Centralized decision-making

d)

Clear separation of concerns

14.

What is the purpose of the infrastructure layer in hexagonal architecture?

a)

To provide the user interface

b)

To contain the core business logic

c)

To handle data storage and retrieval

d)

To manage network communication

15.

What is the role of the service layer in layered architecture?

a)

To provide the user interface

b)

To contain the core business logic

c)

To handle data storage and retrieval

d)

To manage network communication