Magma is made from sediments
Potassium and calcium fluoride are both metals
Atomic mass is usually defined by the total number of protons, neutrons and electrons in a single atom. You can measure it by spectrometry.
Nitrogen is a non-metal and aluminum is a metal so the bond would be ionic.