Step 1: (A) granite type = igneous rock, cooled magma.
Step 2: (B) limestone type = marine sedimentary; (C) gneiss type = metamorphic.
Step 3: (D) volcanic ash deposits = terrestrial sedimentary.
Correct option: (A)-(II), (B)-(III), (C)-(IV), (D)-(I).