Correct option is A
A writ of habeas corpus is a legal action that asks a court to review the lawfulness of a person's arrest or detention. The writ is often used to challenge the legality of a person's imprisonment, but it can also be used to challenge other forms of detention, such as the detention of a person in a mental hospital or the detention of a child by their parents.
The writ of habeas corpus is a powerful tool that can be used to protect individual liberty. It is one of the most important safeguards against arbitrary and unlawful detention.
Mandamus is a writ that orders a public official to perform a duty that they are legally obligated to perform.
Certiorari is a writ that asks a higher court to review the decision of a lower court.
Quo warranto is a writ that asks a court to determine whether a person or organization has the legal right to exercise a particular power or authority.