adplus-dvertising
frame-decoration

Question

What is the role of the controller component in the MVC pattern?

a.

To encapsulate the system's data as well as the operations on those data

b.

To display the data obtained from the model component

c.

To handle input actions

d.

To notify the model of input events

Answer: (c).To handle input actions Explanation:The role of the controller component in the MVC pattern is to handle input actions.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the role of the controller component in the MVC pattern?