SOFTWARE ARCHITECTURE LAYERS, COMPONENTS, AND DESIGN PATTERNS NEW STUDY SET WITH, Exams of Computer Science

SOFTWARE ARCHITECTURE LAYERS, COMPONENTS, AND DESIGN PATTERNS NEW STUDY SET WITH 100% VERIFIED SOLUTIONS!!...

Typology: Exams

2025/2026

Available from 01/18/2026

Smartsolutions
Smartsolutions 🇺🇸

3

(4)

18K documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Presentation layer - ANSWER Handles user interaction such as screens menus
routes and basic formatting. Should not contain business rules or database code.
Controller - ANSWER Directs the user flow by reading input calling application
services and choosing what to show next.
View - ANSWER Displays information to the user such as console output web
pages or UI widgets.
View model - ANSWER Data shaped for display so the UI can render easily
without extra logic.
Presenter - ANSWER Prepares display ready text and values so views stay
simple.
Input output helper - ANSWER Reusable code for reading and writing at the UI
boundary such as prompt read int and print.
Routing - ANSWER Maps user actions or URLs to controller handlers.
Request handler - ANSWER Receives an input event and calls the correct use
case then returns a response.
Response model - ANSWER Data shape returned to the UI that is safe to display.
Application layer - ANSWER Implements use cases which are the actions the
system can perform. Coordinates domain and data access.
Application service - ANSWER Implements a system action such as create habit
or checkout. Enforces business rules and calls repositories.
Use case - ANSWER A single user goal expressed as an operation such as create
habit mark completed or register user.
Interactor - ANSWER Another name for a use case class that performs one
focused operation.
Command object - ANSWER Holds input data needed to run a use case without
adding business behavior.
pf3
pf4
pf5

Partial preview of the text

Download SOFTWARE ARCHITECTURE LAYERS, COMPONENTS, AND DESIGN PATTERNS NEW STUDY SET WITH and more Exams Computer Science in PDF only on Docsity!

Presentation layer - ANSWER Handles user interaction such as screens menus routes and basic formatting. Should not contain business rules or database code. Controller - ANSWER Directs the user flow by reading input calling application services and choosing what to show next. View - ANSWER Displays information to the user such as console output web pages or UI widgets. View model - ANSWER Data shaped for display so the UI can render easily without extra logic. Presenter - ANSWER Prepares display ready text and values so views stay simple. Input output helper - ANSWER Reusable code for reading and writing at the UI boundary such as prompt read int and print. Routing - ANSWER Maps user actions or URLs to controller handlers. Request handler - ANSWER Receives an input event and calls the correct use case then returns a response. Response model - ANSWER Data shape returned to the UI that is safe to display. Application layer - ANSWER Implements use cases which are the actions the system can perform. Coordinates domain and data access. Application service - ANSWER Implements a system action such as create habit or checkout. Enforces business rules and calls repositories. Use case - ANSWER A single user goal expressed as an operation such as create habit mark completed or register user. Interactor - ANSWER Another name for a use case class that performs one focused operation. Command object - ANSWER Holds input data needed to run a use case without adding business behavior.

Query object - ANSWER Holds input data needed to read information without changing state. Business operation workflow - ANSWER The ordered steps that change system state such as validate load update save. Transaction boundary - ANSWER All or nothing unit of work for a use case when persistence is involved. Authorization check - ANSWER Permission check done during a use case to confirm the action is allowed. Domain layer - ANSWER Defines the core business concepts and behavior such as entities value objects and rules. Entity - ANSWER A domain object with identity that can change over time such as Habit User Order. Value object - ANSWER A domain object without identity defined by its values usually immutable such as Money Email Address. Invariant - ANSWER A rule that must always remain true for domain state. Domain behavior - ANSWER Method on a domain object that changes state or computes results while enforcing rules. Domain service - ANSWER Domain logic that does not fit one entity but still represents business meaning. Aggregate - ANSWER A group of domain objects treated as one consistency unit. Aggregate root - ANSWER The main entity that controls changes to the aggregate and protects invariants. Domain event - ANSWER A record that something important happened in the domain used to trigger reactions. Policy - ANSWER Reusable business rule decision logic often used for permissions or eligibility. Data access layer - ANSWER Responsible for saving and loading data through repositories and related components. Repository interface - ANSWER Defines methods for saving and loading domain data without exposing database details.

Composition root - ANSWER The single place where you create objects and connect dependencies. Dependency injection - ANSWER Passing dependencies in rather than creating them inside a class to improve testing and swapping. Configuration settings - ANSWER External parameters such as database URL feature flags and environment values. Environment variables - ANSWER Outside provided configuration values used at runtime. Cross cutting concerns - ANSWER Concerns that affect many parts such as logging security transactions and metrics. Middleware - ANSWER Code that runs before and after a request such as authentication logging or timing. Filter - ANSWER Another name for middleware commonly used in web frameworks. Interceptor - ANSWER Code that wraps calls to apply cross cutting behavior like auditing or retries. Error handling strategy - ANSWER Consistent plan for reporting failures such as exceptions or result objects. Exception - ANSWER An error signal thrown when an operation cannot continue or rules are violated. Result type - ANSWER An explicit success or failure return value that avoids throwing exceptions. Error code - ANSWER A stable identifier for an error type used for UI messages and logging. Input validation format - ANSWER Checks whether input is shaped correctly such as integer date email. Usually handled at the UI boundary. Business validation - ANSWER Checks meaning and rules such as name not blank cannot complete twice today. Lives in application or domain. Normalization - ANSWER Cleans input into a consistent form such as trimming spaces or lowercasing.

Formatting - ANSWER Transforms data into user friendly text such as dates units and labels. Usually presentation responsibility. Mapper - ANSWER Converts between domain models DTOs and persistence models. Assembler - ANSWER Another name for mapper often used when building response models. Data transfer object - ANSWER Simple data container for crossing boundaries without business behavior. Boundary contract - ANSWER The agreed data shapes and rules for how layers communicate. Layered architecture - ANSWER Common structure with presentation application domain and infrastructure separated by responsibility. Feature based packaging - ANSWER Code organization where each feature folder contains its own domain application and UI pieces. Layer based packaging - ANSWER Code organization where folders are named by layer like domain service controller. Hexagonal architecture - ANSWER Architecture where domain and application define interfaces and infrastructure provides adapters. Clean architecture - ANSWER Architecture where dependencies point inward and the domain stays independent. Model view controller - ANSWER Pattern where controller handles input flow view renders output and model holds data and behavior. Side effect - ANSWER Anything that touches the outside world such as database write file write network call or email. Pure function - ANSWER Logic with no side effects that always returns the same output for the same input. Stateful service - ANSWER A service that holds runtime state in memory. Common in small apps and prototypes. Stateless service - ANSWER A service that keeps state in storage and does not rely on in memory data between calls.