Solution:
Real depth (d) = 4cm
Since the microscope is raised to the vertical distance of 1.25 cm to see the scratch of the bottom of the beaker .
Apparent depth= 4-1.25 =2.75cm
Refractive index of the medium =$\frac{{{\mathop{\rm Re}\nolimits} al{\rm{ Depth}}}}{{Apparent{\rm{ Depth}}}} = \frac{4}{{2.75}} = 1.45$