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
Views #: 24
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

Correct Answer

Explanation

MVC — Component Responsibilities

1 pts

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

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

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
note_alt Add notes
flag Flag

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

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

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

Correct Answer

Explanation

LIBSYS — Layered Architecture Example

1 pts
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

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

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

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

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

Correct Answer

Explanation

Client-Server Architecture — Three Components

1 pts

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

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

Correct Answer

Explanation

Client-Server — Advantages and Disadvantages

1 pts

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

drag and drop the selected option to the right place

note_alt Add notes
flag Flag

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

Correct Answer

Explanation

Invoice Processing with Pipe and Filter

1 pts
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

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

Correct Answer

Explanation

Architectural Patterns — Identifying the Right Pattern

1 pts

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

drag and drop the selected option to the right place

note_alt Add notes
flag Flag

Correct Answer

Explanation