Final answer:
Potassium nitrate (KNO3) contains both ionic and covalent bonds within the compound, while potassium sulfate (K2SO4) is an example of a compound containing only ionic bonds.
Step-by-step explanation:
An example of a potassium compound containing both ionic and covalent bonds is potassium nitrate (KNO3), and an example containing only ionic bonds is potassium sulfate (K2SO4).
Potassium nitrate is composed of potassium ions (K+) and nitrate ions (NO3−), with the nitrate being a polyatomic ion held together by covalent bonds between nitrogen and oxygen atoms. This compound demonstrates ionic bonding between potassium and nitrate ions, as well as covalent bonding within the nitrate ion itself.
On the other hand, potassium sulfate is made up of potassium ions (K+) and sulfate ions (SO42−). This compound is purely ionic, with the bonds forming from the electrostatic attraction between the positively charged potassium ions and the negatively charged sulfate ions.