The V components in MVC are responsible for:
2021
The V components in MVC are responsible for:
- A.
User interface.
- B.
Security of the system.
- C.
Business logic and domain objects.
- D.
Translating between user interface actions/events and operations on the domain objects.
Attempted by 146 students.
Show answer & explanation
Correct answer: A
Answer: The View component is responsible for the user interface.
Explanation: The View renders data and defines the presentation. It displays model data and visual elements, and it captures raw user input but does not implement business logic.
Displays model data and visual elements.
Defines layout, look-and-feel, and presentation-specific logic.
Captures user interactions (e.g., clicks, typing) but delegates processing to the Controller.
Business logic and domain objects belong to the Model; translating input/events into model operations is the Controller's responsibility.
A video solution is available for this question — log in and enroll to watch it.