Yeah, I just took the chemistry self-assessment yesterday and got that question wrong too. H2 and O2 are both flammable as far as I can tell, and I'm not sure why the answer explanation only uses flammability as the rationale. I looked at the passage again though and it mentioned that upon formation of the gas the solution became basic, which might indicate protons leaving the solution to form H2 gas. This seems reasonable to me but I'm not sure if that's how we were supposed to figure out the answer, especially since it wasn't in the answer explanation.
I always get gas formation problems wrong.. Does anybody have a solid way of determining what type of gases are produced in different chemical reactions?