The correct option is D Cd
In presence of KCN, only Cd is precipitated as sulphide on passing H2S. This is because, the second ionization of potassium cadmicyanide is higher than that of potassium cupro cyanide (or similar complexes of Co and Ni), so that, sufficient Cd(II) ions are present in solution. Hence, when hydrogen sulphide is passed, only CdS is precipitated.