Dear student ,
The metal is Na ( Sodium )
The gas formed is Hydrogen ( H2 ) and it is tested by bringing the burning splinter near the mouth of the test tube then ' Pop sound " is produced .
Reaction with Na and Hydrochloric acid ( HCl ) is : 2 Na + 2HCl → 2NaCl + H2
The base formed is 2Na +2 H2O →2 NaOH + H2
The metals which do not react with acid are Copper and Lead .
Regards