it's not electrode B? :OAgain,that question..The question was exactly like this
In both cases,electrolysis and cell,the cathode is where a REDCUTION reaction takes place and anode is where oxidation takes place.
In case of electrolysis,the anode is positive and cathode is negative.
The opposite occurs in a cell,where the more reactive metal loses electrons so it the negative pole and therefore ANODE.
Here there were no metals but the electrons flow was clearly shown,and the question stated
"Which electrode will be oxidized and decrease in mass"
Electrode B,Loses electrons ,dissolve in the solution as ions and its mass decreases(This actually ressembles electroplating where the ANODE loses electrons and change into ions.
While Electrode A,also decreases in mass but due to reaction with oxygen..This electrons compensate those lost in the reaction with oxygen which is A REDOX REACTION.