The correct option is B 2:1 by volume
On electrolysis, water decomposes according to the reaction, 2H2O(l)→ 2H2(g)+O2(g).
Thus, water decomposes to give hydrogen and oxygen in the ratio 2:1 by volume. The double volume of the gas collected is hydrogen.