Architectural Design Patterns Flashcards

1
Q

The MVC design pattern divides an ____ into thre major aspects: ____, ___, and ____.

A

MVC design pattern divides an application into three major aspects: Model, View, and Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Model View-View Model supports ____ between the _____ and the _________

A

two-way, View, View Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In MVVM pattern 2-way data binding between view and view model allows _______ inside the state of the ____ to the ________

A

Automatic Propagation, View-Model, View

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In MVVM generally the _______ utilizes the ______ pattern to inform changes in the ______ to the ______

A

View-Model, Observer, View-Model, Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Model means ______ that is required to display in the _____. Model represents a ______ of _____ that describes the _______ (business model and the data model).

A

data, view, collection, classes, business logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The model defines the ______ rules for ______ as how the _____ can be _____ and ______

A

business, data means, data, changed, manipulated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The View represents ____ like ____, ____ etc.

A

UI components, XML, HTML,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

View displays the data that is received from the ______ as the outcome.

A

Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In MVC pattern View monitors the ____ for any state change and displays ______. Model and View interact with each other using the _____ pattern

A

Model, updated model, observer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The Controller is responsible to _______.

A

Process incoming request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In MVC The controller processes users data through the ____ and passing back the results to the ____

A

Model, view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The controller normally acts as a ____ between the ____ and the _____

A

mediator, view, model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The MVP pattern is similar to the _____ pattern.

A

MVC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The MVP is derived from MVC pattern, wherein the ______ is replaced by the _____.

A

MVC pattern, controller, presenter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The MVP divides an application into three major aspects ____, ____, and ___

A

Model, View, Presenter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The Model represents a set of _____ that describes the ______ and ____.

A

classes, business logic, data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The model defines ____ for data. Which means how the data can be changed and manipulated

A

business rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

View is a _____ which directly interacts with user like ___, _____, ______.

A

component, XML, Activity, fragments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The view does not contain any _____ ______

A

Logic implemented

20
Q

The Presenter receives the input from users via ____, then process the user’s data with the help of ____ and passing the results back to the _____.

A

View, model, view

21
Q

Presenter communicates with ____ through _____.

A

view, interface

22
Q

_______ is defined in presenter class, to which it passes the required data. ______/____ or any other view component implement this interface and renders the data in a way they want.

A

Interface, activity, fragment

23
Q

In the MVP design pattern, the presenter manipulates the ____ and also updates the ____.

A

model, view

24
Q

In MVP _____ and _____ are completely decoupled from each other’s and communicate to each other’s by an _______.

A

View, presenter, interface

25
Q

Because of decoupling ____ of the ____ is easier and unit testing of applications that leverage the ___ design pattern over the ___ design pattern are much easier.

A

Mocking, view, MVP, MVC

26
Q

The view-model is responsible for exposing ____, _____, and other ______ that help to maintain the state of the _____.

A

methods, commands, properties, view.

27
Q

In view model methods, commands, and other properties manipulate the ____ as the result of actions on the ____,

A

Model, View

28
Q

The view-model is responsible for exposing methods commands, and properties that trigger events in the ____ _____.

A

View itself

29
Q

In view model, the ____ has a reference to the _____ but ____ has no information about the _____.

A

view, view-model, view-model, view

30
Q

In view model there is _____ relationship between ____ and ______ which means many ____ can be mapped to one _______. It is completely independent of ______.

A

many-to-one, view, view-model, views, view-model views.

31
Q

In view model The bi-directional data binding or the two way data binding between the view and the View-Model ensures that the ____ and _____ in the ______ is in sync with the ____.

A

Models, properties, view-model, view.

32
Q

The MVVM design pattern is well suited in applications that need support for _____.

A

bi-directional data binding

33
Q

The Model View Controller input is directed at the ____ first, not the _____. That input might be coming from a user interacting with a page, but it could also be from simply entering a specific url into a browser. In either case, its a ______ that is interfaced with to kick off some functionality.

A

controller, view, controller.

34
Q

With model view controller, There is a _____ relationship between the ____ and the _____. That’s because a single controller may select different views to be rendered based on the ______ being executed.

A

many-to-one, controller, view, operation

35
Q

With model view controller there is a one way arrow from _______ to _____.

A

Controller, view.

36
Q

With model view controller the _____ doesn’t have any knowledge of or reference to the _______.

A

View, Controller

37
Q

With model view controller The ______ does pass back the _____, so there is knowledge between the ____ and the _______ being passed into it, but not the ____ serving it up.

A

controller, model, view, expected model, controller

38
Q

Now let’s look at the MVP pattern. It looks very similar to MVC, except for some key distinctions:
The input begins with the ____, not the ______.

A

view, presenter

39
Q

With MVP There is a _____ mapping between the _____ and the associated ______.

A

One-to-one, view, presenter

40
Q

with MVP The ____ holds a reference to the _____. The Presenter is also reacting to events being triggered from the _____, so its aware of the View its associated with.

A

View, presenter, view,

41
Q

With MVP The _____ updates the ____ based on the requested _____ it performs on the _____, but the ____ is not ______ aware

A

Presenter, view, actions, modal, view, model

42
Q

With model view view model -

The input begins with the _____, not the _______.

A

View, View Model

43
Q

In - MVVM
While the _____ holds a reference to the ______, the ______ has no information about the ______. This is why its possible to have a ______ mapping between various Views and one View Model…

A

View, View model, View model, View, one-to-many

44
Q

You’ll also notice that the ____ has no idea about the _____ in the MVVM pattern. This is because, as far as the View knows, its “Model” IS _____(hence its name).

A

View, model, the view model

45
Q

Because of how data-binding and other features like commanding work in WPF and Silverlight, there is rich communication between the _____ and _______, isolating the _____ from having to know anything about what’s really happening behind the scenes

A

View, view model, view