The correct answer is C. Writ of Mandamus.
A writ of mandamus is a court order issued to a government official or other public authority, compelling the official to take a certain action or to refrain from taking a certain action. The writ is used to compel the performance of a ministerial duty, which is a duty that is clearly defined and must be carried out in a certain way.
A writ of certiorari is a court order that orders a lower court to send up the record of a case for review. The writ is used to review a lower court's decision to see if it was correct.
A writ of habeas corpus is a court order that orders a person to be brought before a court to determine whether they are being held lawfully. The writ is used to protect people from being held in prison or other detention without being charged with a crime or being given a fair trial.
A writ of quo warranto is a court order that asks a person to show by what authority they are holding a certain office or position. The writ is used to challenge the right of a person to hold an office or position.
In the case of the question, the correct answer is C. Writ of Mandamus because the writ is used to compel an authority to perform a function that it was not performing.