Architectural Patterns

This quiz covers the four key architectural patterns: Model-View-Controller (MVC), Layered Architecture, Repository, Client-Server, and Pipe and Filter. Questions test understanding of each pattern's structure, use cases, advantages, disadvantages, and real-world examples

download Export
search_insights Statistics
stylus_note White Board
Quran
calculate Calculator
dictionary Dictionary
fullscreen Full Screen
QUESTION OF

volume_mute Read quiz aloud
Views #: 225
Questions #: 17
Time: 10 minutes
Pass Score: 80.0%
Style
Mode

What is an Architectural Pattern?

1 pts
volume_mute

Which of the following best defines an architectural pattern?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


MVC — Component Responsibilities

1 pts
volume_mute
To complete the line match
  1. Click on an item in the first group
  2. Click on an item in the second group
  3. To delete a match, double click on a line

MVC Component

Model
View
Controller

Responsibility

Manages system data and associated operations; notifies View of state changes
Defines and manages how data is presented to the user; sends user events to the Controller
Manages user interaction (key presses, clicks); maps user actions to model updates and selects the View

The Model-View-Controller (MVC) pattern structures a system into three logical components. Match each component to its responsibility.

Controller Maps user actions to model updates Selects view View Renders model Requests model updates Sends user events to controller Model Encapsulates application state Notifies view of state changes View selection User events State change State query Change notification
note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


MVC — Advantages and Disadvantages

1 pts
volume_mute

Which of the following correctly states an advantage AND a disadvantage of the MVC pattern?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


MVC — When to Use

1 pts
volume_mute

The MVC pattern is most appropriately used in which of the following situations? Select ALL that apply.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Layered Architecture — Core Concept

1 pts
volume_mute

In a layered architecture, what is the key rule that governs how layers interact with each other?

User Interface User Interface Management Authentication and Authorization Core Business Logic / Application Functionality System Utilities System Support (OS, Database etc.)
note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


LIBSYS — Layered Architecture Example

1 pts
volume_mute
Please drag and drop the options to sort them

The LIBSYS system uses a five-layer architecture to provide controlled electronic access to copyright material from university libraries. Arrange the LIBSYS layers in order from top (user-facing) to bottom (data sources).

Individual library databases (DB1, DB2 … DBn)
Library Index
Distributed Search, Document Retrieval, Rights Manager, Accounting
LIBSYS Login, Forms and Query Manager, Print Manager
Web Browser Interface
note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Layered Architecture — Advantages and Disadvantages

1 pts
volume_mute

Which of the following correctly identify an advantage AND a disadvantage of the layered architecture pattern?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Repository Architecture — Core Concept

1 pts
volume_mute

In a Repository architectural pattern, how do system components interact with each other?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Repository Pattern — IDE Example

1 pts
volume_mute

The diagram below shows an IDE organized as a Repository architecture. Which component acts as the central repository through which all other tools share data?

Project repository UML editors Code generators Design translator Java editor Python editor Design analyzer Report generator
note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Repository vs. Blackboard

1 pts
volume_mute

In a Repository pattern, the repository can be either passive or active (blackboard model). Which of the following correctly distinguishes these two variants?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Client-Server Architecture — Three Components

1 pts
volume_mute

A system that follows the Client-Server pattern has three major components. Drag the correct term into each placeholder.

A client-server system is composed of: (1) that offer services to other components (e.g., print servers, file servers); (2) that call on these services — several instances may execute concurrently on different computers; and (3) that allows clients to access the services, usually implemented using Internet protocols.

Please drag and drop the selected option in the right place or type it instead
A set of servers
A set of clients
A network
note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Film Library Client-Server Architecture

1 pts
volume_mute

A multi-user web-based film and photograph library uses a client-server architecture with separate servers for different media types. Why are still pictures maintained on a separate server from video?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Client-Server — Advantages and Disadvantages

1 pts
volume_mute
Statements
×Servers can be distributed across a network; general functionality can be available to all clients without being implemented by all services
×Each service is a single point of failure making it susceptible to denial-of-service attacks or server failure
×New servers can be added and integrated without affecting other parts of the system
×Performance may be unpredictable because it depends on the network as well as the system
×Management problems may arise if servers are owned by different organisations
Advantage
Disadvantage

Classify each of the following statements as either an Advantage or a Disadvantage of the Client-Server architectural pattern.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Pipe and Filter — Core Concept

1 pts
volume_mute

Which of the following best describes the Pipe and Filter architectural pattern?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Invoice Processing with Pipe and Filter

1 pts
volume_mute
Please drag and drop the options to sort them

An organisation uses a Pipe and Filter system to process weekly invoices. The system reads issued invoices, identifies which payments have been made, issues receipts for paid invoices, and sends reminders for overdue payments. Arrange the processing stages in the correct pipeline order.

Issue Payment Reminder → Reminders output
Read Issued Invoices
Find Payments Due → Issue Payment Reminder
Identify Payments
Issue Receipts → Receipts output
note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Pipe and Filter — When NOT to Use

1 pts
volume_mute

Which type of system is most difficult to implement using a Pipe and Filter architecture, and why?

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation


Architectural Patterns — Identifying the Right Pattern

1 pts
volume_mute
System Description
×An IDE where a UML editor, code generator, and design analyser all read and write to a shared version-controlled project store
×A web application where a browser submits forms, a controller processes the input, and the resulting data is displayed in multiple dashboard views
×A banking application where ATM clients connect via the Internet to separate account servers and printing servers
×A payroll system that reads employee records, calculates tax, applies deductions, and generates pay slips in sequential stages
MVC
Repository
Client-server
Pipe and Filter

Match each system description to the architectural pattern it most naturally follows.

note_alt Add notes
flag Flag
volume_mute

Correct Answer

Explanation