Model, View, Controller Pattern Flashcards

1
Q

Briefly explain Model component of MVC Pattern

A

Represents the business data and any business logic that governs access to and modification of the data.

The model notifies views when it changes.

View queries the model about its state.

Lets the controller access application
functionality encapsulated by the model.

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

Briefly explain View component of MVC Pattern

A

View renders contents of a model

Specifies how that data should be presented

It updates data presentation when the model changes.

A view also forwards user input to a controller.

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

Briefly explain Controller component of MVC Pattern

A

Defines application behaviour

Dispatches user requests

Selects view for presentation

It interprets user inputs and maps them into actions
to be performed by the model.

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