Answer :
[tex]MgSO_4[/tex] solution contains [tex]Mg^{2+}[/tex] and [tex]SO_4^{2-}[/tex]
[tex]NaNO_3[/tex] solution contains [tex]Na^{+}[/tex] and [tex]NO_3^{-}[/tex]
Explanation :
Ionic compound : It is defined as the compound which is formed when electron gets transferred from one atom to another atom.
All the polyatomic ions always form an ionic compound.
Polyatomic ions : It is a charged species that composed of two or more atoms and these charged species are bonded by the covalent bond.
The given compounds are, [tex]MgSO_4[/tex] and [tex]NaNO_3[/tex]
[tex]MgSO_4[/tex] is an ionic compound which is formed by the combination of [tex]Mg^{2+}[/tex] cation and [tex]SO_4^{2-}[/tex] anion.
and,
[tex]NaNO_3[/tex] is an ionic compound which is formed by the combination of [tex]Na^{+}[/tex] cation and [tex]NO_3^{-}[/tex] anion.