Ionic character depends on the electronegativity difference between bonded atoms. NaF has the highest ionic character due to the large difference between sodium and fluorine.
Resonance in X$_2$Y can be represented as
The enthalpy of formation of X$_2$Y is 80 kJ mol$^{-1}$, and the magnitude of resonance energy of X$_2$Y is: