183k views
4 votes
Which mapping between components in PAC and components in MVC model is NOT correct?

a. Abstraction module of PAC - Data Model of MVC
b. Control module of PAC - Controller module of MVC
c. Control module of PAC - Control module of MVC
d. Presentation module of PAC - View module of MVC

User Niqui
by
7.2k points

1 Answer

4 votes

Final answer:

The question compares components between two architecture patterns: PAC and MVC. All listed mappings can be considered correct with the assumption of a typographical error in option c, which incorrectly refers to a 'Control module' in MVC rather than a 'Controller module.' However, if taken literally, option c would be incorrect due to an apparent naming discrepancy.

Step-by-step explanation:

The question involves the comparison between two software architecture patterns: PAC (Presentation-Abstraction-Control) and MVC (Model-View-Controller). Each component in PAC corresponds to a similar component in MVC with some minor conceptual differences. Let's examine each mapping provided in the choices:

  • Abstraction module of PAC - Data Model of MVC is a correct mapping. In PAC, the Abstraction module holds the application's data and business logic, which aligns with the Data Model component in MVC that also handles data and business rules.
  • Control module of PAC - Controller module of MVC is a correct mapping. Both are responsible for handling user input and updating the model/presentation accordingly.
  • Presentation module of PAC - View module of MVC is a correct mapping. These both represent the visual representation and the user interface components of an application.
  • The option c. Control module of PAC - Control module of MVC is somewhat tricky because it seems to affirm itself, but actually, MVC does not have a 'Control module', it has a 'Controller module'. There might be a typographical error in this option. Assuming it refers to the 'Controller module' of MVC, this would actually be a correct mapping. If 'Control module' is meant to be a different component, this mapping would be incorrect.

Therefore, with the assumption of a typographical error, all mappings listed are technically correct, but the wording of option c is not correct, since MVC does not have a 'Control module'. However, if 'Control module' was intended and is distinct from the 'Controller module', then option c would be the incorrect mapping. In the context of a test without additional clarifying information, we might assume that option c is incorrect due to an inadvertent naming discrepancy.

User Sourav Dutta
by
7.2k points