What is the purpose of the MVC architecture in web development?

What is the purpose of the MVC architecture in web development?

a) To structure code into separate parts: Model, View, Controller
b) To build database queries
c) To deploy applications to the cloud
d) To manage user authentication

Answer:

a) To structure code into separate parts: Model, View, Controller

Explanation:

MVC (Model-View-Controller) is a design pattern that separates the application logic into three interconnected components, making the code more organized and easier to maintain.

Reference:

Full Stack Web Development Quiz – MCQ Questions and Answers

Scroll to Top