Answer: A. A is correct. The stopping potential of 0.70 V fixes the maximum kinetic energy at 0.70 eV, so the work function is 3.10 eV − 0.70 eV = 2.40 eV, using the relation in NCERT Class 12 Physics, Chapter 11, page 281.
Why B is wrong: B is wrong because it adds the stopping energy to the photon energy; the photon energy is the total available, and the work function is the part of it consumed in escaping, so the work function must be less than 3.10 eV.
Why C is wrong: C is wrong because it treats the whole photon energy as the work function, leaving nothing for the kinetic energy that the 0.70 V retarding potential had to remove — the same slip as writing maximum kinetic energy as photon energy alone, seen from the other side.
Why D is wrong: D is wrong because 0.70 eV is the maximum kinetic energy of the emitted electrons, read off the stopping potential; it is the quantity to be subtracted, not the work function itself.