During electrolysis of potassium acetate, the following reaction occurs:
- At anode: acetate ions oxidize to produce ethane (alkane) and carbon dioxide.
- The ratio of moles of alkane to \(\mathrm{CO}_2\) formed is 1:2.
- Hence, volume ratio at STP is also 1:2.