The correct option is C A gets oxidised and B gets reduced.
For a working electrochemical cell, one of the components will get reduced and the other one will get oxidised.
Reaction 1 :
A (s)⇌An+ (aq)+ne−
E∘=−1.5 V
Reaction 2:
B (s)⇌Bn+ (aq)+ne−
E∘=−3.1 V
Since for reaction 2, E∘ has a lower value than that of reaction 1, so forward reaction for reactant B will be less spontaneous than the forward reaction of reactant A.
Consequently reactant B has a tendency to reduce more as compared to reactant A.
Hence, A gets oxidised and B gets reduced.