Answer:
An ionic compound is formed between a metal and a nonmetal (or polyatomic ions), and is held together through the attraction of opposite charges. An example is KCl. A molecular compound is usually formed between two or more nonmetals, and is held together through the sharing of electrons between atoms. An example is SO2.
Explanation:
When we talk about ionic bonds, the first thing that must come to mind is the electrostatic attraction between oppositely charged ions. Hence, we know that metals form cations and nonmetals form anions, thus metals could transfer electrons to nonmetals to facilitate the formation of ionic bonds. Ionic bonds could also be formed by the combination of metals with polyatomic ions such as CaCO3. Always keep it in mind that ionic bonds are characterized by electrostatic attraction between any pair of oppositely charged ions.
Molecular compounds are formed by sharing of electrons between nonmetals. We find covalent or polar covalent bonds in molecular compounds such as SO2.