Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 336
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?
Answer options
- A. to asynchronously update the graphical interface
- B. to define different algorithms for data manipulation
- C. to separate the logic of the graphic interface of the different devices
- D. to have only one instance of the objects that contain the data
Correct answer: C
Explanation
The MVC design pattern effectively separates the application's data, business logic, and user interface, allowing different devices to use the same data structure while adapting their interfaces. The other options do not address the need for a consistent data structure across devices; instead, they focus on updating interfaces, defining algorithms, or object instance management.