Carbon dioxide displaces the oxygen the flame needs to burn, which causes the flame to go out (the effect). When a flame is placed near hydrogen, it causes a popping noise (the effect) as the hydrogen burns.