Question: how many d electrons are there in zn2+?
Answer: Using the box notation to represent atomic orbitals, work out how many unpaired electrons are present in the Zn2+ and Co2+ ions. Zn2+ has 0 unpaired d electrons, Co2+ has 3 unpaired d electrons. Co2+ is therefore paramagnetic and will be attracted by a magnetic field.