When a piece of aluminium is dropped in HCl and in NaOH separately, and a burning match is brought near them, pop sound is heard in case of .
When magnesium is burned with hydrochloric acid, a pop sound is heard when a glowing splint is brought near the beaker. It is because: