The correct option is D 2
An element with a valency of two can either lose or gain two electrons. If it loses two electrons, then it belongs to group 2 and if it gains two electrons, then it belongs to group 16 of the Modern Periodic Table.
Hence, the correct answer is option (d).