Chlorine has 4 positive oxidation numbers to form oxyacids: +1, +3, +5 and +7.
When it uses the oxidation number +5, it forms HClO₃, which is named chloric acid, with the suffix -ic. When it loses an H⁺, it forms the oxyanion ClO₃⁻ (chlorate).
When it uses the oxidation number +3, it forms HClO₂, which is named chlorous acid, with the suffix -ous. When it loses an H⁺, it forms the oxyanion ClO₂⁻ (chlorite).
Nitrogen has 2 positive oxidation numbers to form oxyacids: +3 and +5.
When it uses the oxidation number +5, it forms HNO₃, which is named nitric acid, with the suffix -ic. When it loses an H⁺, it forms the oxyanion NO₃⁻ (nitrate).
When it uses the oxidation number +3, it forms HNO₂, which is named nitrous acid, with the suffix -ous. When it loses an H⁺, it forms the oxyanion NO₂⁻ (nitrite).
CaF2 is an ionic compound. Ionic compounds are mostly composed of a metal and a non metal. Metals donate electrons to non-metals to form ionic compounds.
Calcium is a divalent ion of group two in the periodic table while F is a univalent nonmetal of group 17 in the periodic table. Hence the compound CaF2 is composed of a metal and a nonmetal.