In web development, when implementing an MVC architecture, what are the…
2024
In web development, when implementing an MVC architecture, what are the challenges associated with maintaining a clean separation between the Model, View, and Controller layers ?
- A.
Ensuring that the Model layer handles all user interactions.
- B.
Preventing tight coupling between the Model and View layers
- C.
Minimizing the role of the Controller in handling business logic
- D.
Encouraging direct communication between the View and Controller layers
Attempted by 52 students.
Show answer & explanation
Correct answer: B
The correct answer is Option B. In Model-View-Controller (MVC) architecture, the primary goal is to separate concerns so that each component has a distinct responsibility. The Model manages data and business logic, the View handles presentation, and the Controller processes user input.",