H2O is a compound. So it's second one.
Acids are donors of protons (H+) and bases are acceptors of protons.
For example:
1) hydrochloric acid (HCl) in reaction with water give one proton to water and become chloride anion (Cl-).
2) ammonia (NH3) Is base, in reaction with water accepts one protone and become ammonium cation (NH4+).
One is through sublimation, where the mixture is heated and iodine gets converted into gaseous form, leaving behind the iron fillings.
The other is to get a magnet near the mixture and all the iron fillings get attracted to it while iodine will be left over