Assignment 4 - Architecture

¡Supera tus tareas y exámenes ahora con Quizwiz!

Development View

Concerned with how the solution is packaged into modules or libraries as well as how work is partitioned among developers.

Logical View

Ensures functional requirements are covered. Contains class/object diagrams.

Philippe Kruchten's 4+1 view model of software architecture includes a view that expresses the desired look and feel of the proposed software system.

False

With a sophisticated enough protocol between client and server, a client server architecture becomes a 3-tiered architecture.

False Explanation: The mechanism for communication between components isn't considered a layer, tier or component. The assumption you can view the communication protocol as a layer is false.

The 3-tiered architecture style divides a system into three components: UI <--> Business Logic <--> Database. True/False: The Model-View-Controller architecture is a particular instance of the 3-tiered architecture style where View = UI, Controller = Business Logic and Model = Database.

False Explanation: They are two different architecture styles. Argument #1: draw the diagrams. MVC looks more like a triad. 3-tiered is horizontal. Argument #2: with MVC the BL is in the model along with the data/state. With the 3-tiered architecture style, business logic is in the middle tier between the UI and database. With MVC, business logic is in the model or fourth component and the control component has event handling routines.

The ISO/OSI networking model best resembles which architecture style? a) N-tiered b) Pipes/filters c) Data abstraction and object-oriented d) Layered e) Client-Server

Layered

What are the 4 main views in Philippe Kruchten's 4+1 views of software architecture?

Logical, Process, Physical, Development (the +1 is "use-case")

The publish/subscribe architecture style is most similar to which design pattern? a) Template Method b) Strategy c) Observer d) Command

Observer Explanation: The observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. (Wikipedia)

Which scales better, the Client/Server or Peer-to-Peer architecture style? Here scale means adding more clients.

Peer-to-Peer

The Android operating system has components called broadcast receivers. A broadcast receiver doesn't have a user interface. A broadcast receiver is a unit of code that respond to specific system-wide events. For example, you might write a broadcast receiver that executes every time the device is connected to a power source. When the Android operating system detects that the phone has been connected to a power source, it will issue an event (ACTION_BATTERY_CHANGED) and your code will wake up and execute. What architecture style do broadcast receivers follow?

Publish/Subscribe

Process View

Shows the allocation of functionality to tasks and threads within tasks.

Physical View

Shows the mapping of software elements to the actual machines where the software will run.

Which of the following statements about Philippe Kruchten's 4+1 View Model of Software Architecture is true? a) The model offers 5 different views that capture different architectural perspectives on any software system. b) The model provides 5 different views at progressive levels of abstraction. c) The model explains how to create one diagram that describes a software architecture from 5 different perspectives. d) The model provides 5 different diagram types, one for each specific type of architecture style.

The model offers 5 different views that capture different architectural perspectives on any software system.

One program may be structured using two or more architecture styles. In other words, a single program isn't confined to a single architecture style.

True

Pipe components in the pipes and filter architecture style are one-way. Data is not allowed to flow both ways through a pipe component.

True

Can the organizational structure of a company affect the architecture of the software it produces?

Yes

Which of the following is likely to have the greatest influence on the selection of an architecture?

non-functional requirements


Conjuntos de estudio relacionados

econ 361 chapters 1-14 review questions

View Set

Business Ch.7 Management and Leadership

View Set

Personal Finance Chapter 3.1 & 3.2

View Set