How will you test if the gas liberated is CO2 or not?
It can be tested by lime water test. The gas is allowed to pass through lime water and if it turns milky, then the liberated gas is CO2.