What is the role of the controller component in the Model-View-Controller (MVC) flow?

IT Questions BankCategory: DevNetWhat is the role of the controller component in the Model-View-Controller (MVC) flow?

What is the role of the controller component in the Model-View-Controller (MVC) flow?

  • It accepts selected data and displays it to the user.
  • It provides visual representations and presentations of the data.
  • It takes user input and manipulates it to the proper format for the model.
  • It takes in user input and manipulates it to fit the format for the model or view.

Explanation: The Model-View-Controller (MVC) design pattern abstracts code and responsibility into three distinct components: model, view, and controller. The controller accepts the input, manipulates the data, and sends the manipulated data to the model.

Exam with this question: 3.7.2 Module 3: Software Development and Design Quiz

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x