The correct answer is D. During the formation of an ionic bond, the valence electrons are transferred from a metal atom to the non-metal atom, leading to the formation of an ionic bond. The atoms which lose valence electron, become positively charged, and the one which accepts it, becomes negatively charged.