An ionic compound is a chemical compound that is composed of ions. There are two types of ions: cations and anions.
An ionic compound is a salt that determines the same number of cations and anions so the product is electrically neutral (Ex: sodium chloride, NaCl).
An ionic compound is held together by transferring electrons. A cation is when an element loses its electrons while an anion is when an element gains its electrons.
Choices A, B, and C are valid for ionic compounds. Choice D is referring to covalent compounds where they share electrons.