Option 1 -> Incorrectly matches Mandamus with (III) which describes Prohibition's function.
Option 2 -> Incorrectly matches Mandamus with (III) and swaps Quo Warranto with Certiorari.
Option 3 -> Correctly matches Mandamus and Prohibition but swaps Quo Warranto with Certiorari.
Option 4 -> Correctly matches all writs: Mandamus commands performance of legal duty (II), Prohibition stops lower courts from exceeding jurisdiction (III), Quo Warranto challenges unauthorized office holding (I), Certiorari transfers matters for review (IV).
Hence, Option 4: (A) - (II), (B) - (III), (C) - (I), (D) - (IV) -> Mandamus compels officials to perform their legal duties, Prohibition prevents jurisdictional excess by lower courts, Quo Warranto questions the authority to hold office, and Certiorari enables higher courts to review lower court proceedings -> correct