How are ionic bonds formed?

Multiple choice question.

A)
loss of electrons by atoms

B)
sharing of electrons between atoms

C)
electrostatic forces between ions

D)
gain of electrons by atoms