ionic compound. The atom that lost the electron becomes a cation, and the atom that gains an electron becomes an anion. The cation and anion bond together because they have opposite charges to form an ionic compound. The question may be looking for just cation or anion, though.