Answer :
The liquid will rise to the top of a shorter capillary tube and stop due to capillary action. Water rises in a glass capillary tube due to adhesive and cohesive forces, while mercury falls due to its cohesive forces and contact angle.
If a capillary tube of length less than the capillary height for a given liquid is dipped in that liquid, then the liquid will rise to the top of the tube and stop.
This phenomenon is due to capillary action, where the liquid rises in the tube because of the adhesive force between the liquid and the tube, as well as the cohesive forces within the liquid. For example, water in a glass capillary tube will rise above the external liquid level because of strong adhesive forces and relatively high surface tension. Conversely, mercury will fall in the tube due to stronger cohesive forces and a large contact angle with glass.