Showing posts with label Validations. Show all posts
Showing posts with label Validations. Show all posts

Tuesday, February 15, 2022

Introduction to MVC (Model-View-Controller) (Questions and Answers)

MVC (Model-View-Controller) (Interview Questions)

  • The Model-View-Controller (MVC) architectural pattern separates an app into three main components: Model, View, and Controller. The MVC pattern helps you create apps that are more testable and easier to update than traditional monolithic apps.
  • It supports separation of concern as Model describes data, View represents UI and Controller manages the presentation logic which handles user request.
  • Using the MVC pattern for websites, requests are routed to a Controller that is responsible for working with the Model to perform actions and/or retrieve data. The Controller chooses the View to display and provides it with the Model. The View renders the final page, based on the data in the Model.