When a substance A reacts with water, it produces a combustible gas B and a solution of substance C in water. D reacts with this solution of C and produces the same gas B on warming. D can also produce gas B on reaction with dilute H2SO4. A imparts a deep golden yellow colour to a smokeless flame. A, B, C and D are respectively: