Place a burning splint near the opening of a test tube. If a popping noise occurs, it's probably hydrogen. Place a glowing splint in the test tube, and if it reignites, it could be oxygen. Place a burning splint into a test tube, and if it goes out, it could be carbon dioxide.