volume_mute
MVC — Component Responsibilities
publish date: 2026/06/10 21:07:21.320074 UTC
volume_muteThe Model-View-Controller (MVC) pattern structures a system into three logical components. Match each component to its responsibility.
To complete the line match
- Click on an item in the first group
- Click on the match in the second group
To delete a match, double click on a line
MVC Component
Model
View
Controller
Responsibility
Manages system data and associated operations; notifies View of state changes
Defines and manages how data is presented to the user; sends user events to the Controller
Manages user interaction (key presses, clicks); maps user actions to model updates and selects the View
Correct Answer
(1) Model,Manages system data and associated operations; notifies View of state changes
(2) View,Defines and manages how data is presented to the user; sends user events to the Controller
(3) Controller,Manages user interaction (key presses, clicks); maps user actions to model updates and selects the View
Explanation
In MVC: the Model encapsulates application data and state; the View defines how data is rendered and manages the display; the Controller handles user input events and coordinates between the Model and View. This separation allows each component to change independently.
Reference
Software Engineering, Ian Sommerville, 10th edition
