It is BOTH.
K2CO3 is a molecule in its own right.
Any substance that is a combination of different elements is a MOLECULE.
The question should ask 'Is potassium carbonate ionic or covalent?'.
Again the answer is BOTH.
The potassium cation (K^(+)) binds ionically to the carbonate anion.
However, within the carbonate anion (CO3^(2-)) , the three atoms 'C', & 'O' combine COVALENTLY, leaving two 'spare' electrons to combine ionically with the potassium cation. Hence the charge of '2-' on the carbonate anion.
Ionic Molecular
Molecular
molecular
PtO2 is ionic
ionic
ionic
it is ionic
It is molecular
It's molecular
A molecular covalent compound
Molecular compound
CO is a molecular compound. It consists of a covalent bond between carbon and oxygen atoms.