Struts Framework Flashcards

1
Q

Explain MVC

A

Model View Controller. Software architectural pattern for implementing user interfaces on computers. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user.

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

What was MVC traditionally used for?

A

GUIs

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

What is the central component of MVC?

A

Model

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

What’s model?

A

The model directly manages the data, logic and rules of the application.

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

What’s view?

A

A view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants.

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

What’s controller?

A

Accepts input and converts it to commands for the model or view.

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

Describe interactions between parts in MVC

A

1) A model stores data that is retrieved according to commands from the controller and displayed in the view.
2) A view generates new output to the user based on changes in the model.
3) A controller can send commands to the model to update the model’s state (e.g. editing a document). It can also send commands to its associated view to change the view’s presentation of the model (e.g. by scrolling through a document).

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