200-901 · Question #456
A web app must be accessible from computers and mobile devices. It must maintain the same data structure on both types of devices. What is the advantage of using the MVC design pattern for this app?
The correct answer is C. to separate the logic of the graphic interface of the different devices. MVC (Model-View-Controller) separates an application into three layers: Model (data and business logic), View (the user interface/presentation), and Controller (input handling). For an app that must work on both desktop computers and mobile devices, MVC allows you to create…
Question
A web app must be accessible from computers and mobile devices. It must maintain the same data structure on both types of devices. What is the advantage of using the MVC design pattern for this app?
Options
- Ato asynchronously update the graphical interface
- Bto define different algorithms for data manipulation
- Cto separate the logic of the graphic interface of the different devices
- Dto have only one instance of the objects that contain the data
How the community answered
(35 responses)- B3% (1)
- C91% (32)
- D6% (2)
Explanation
MVC (Model-View-Controller) separates an application into three layers: Model (data and business logic), View (the user interface/presentation), and Controller (input handling). For an app that must work on both desktop computers and mobile devices, MVC allows you to create multiple, device-specific Views (one for desktop, one for mobile) while sharing a single Model and Controller. This is the core advantage: the presentation logic for each device type is isolated without duplicating data or business logic. Option A describes asynchronous UI updates (more relevant to MVVM). Options B and D describe other design patterns.
Topics
Community Discussion
No community discussion yet for this question.