The correct option is D (ii), (iii) and (iv)
Device marked as (i) is of RAM, which is the primary memory of the computer. It retains the data till when computer is switched ON. Device marked as (ii), (iii) and (iv) are of Hard disk. Pendrive and CD respectively, which is a secondary memory of a computer. And they retain the data even when computer is switched OFF.