MVC pattern Flashcards

1
Q

What are the components of an MVC pattern?

A

Model, view, and controller

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

What is a design pattern?

A

Documented solution to a specific type of problem. It presents the interaction of data and methods across multiple classes

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

What do the three components of MVC do?

A

Model - manages the application data, defines the processes, objects and rules used in the system

view - presents information to the user application

Controller - Processes user inputs and how the model behaves

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

How does the MVC pattern work?

A

The view sends inputs to the controller

controller updates the model

model updates the view

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

How does information flow between an MVC pattern?

A
  1. HTTP request is sent to the controller
  2. the request is performed on the model
  3. view renders information to the user
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Spring Boot?

A

Pre-configured set of framework that makes it easier to start up a project quickly.

Easy testing
Easy dependency injection
Decreased “boilerplate” code

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

What is dependency injection?

A

Provides an object with dependencies instead of having to construct them. Set up so objects can receive properties from other piece of code. Dependencies can be injected into objects via constructors or setters.

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