A rod of length 10 cm lies along the principal axis of a concave mirror of focal length 10 cm as shown in figure. The length of the image is _____ cm.

Let the concave mirror be taken as the origin of the coordinate system and the principal axis be the positive x-axis extending to the left of the mirror (Cartesian sign convention).
Hence every object distance is negative and every real image distance is also negative. We shall finally use magnitudes for the required lengths.
Focal length of the concave mirror:
The rod of length 10 cm is kept along the principal axis so that its nearer end is 20 cm from the pole of the mirror and its farther end is 30 cm from the pole.
Therefore, using sign convention,
For each end we apply the mirror formula
Image of end A
Substituting in (1):
Image of end B
Substituting in (1):
Both images are real and lie on the principal axis in front of the mirror. Their separation (length of the image of the rod) is the difference in the magnitudes of and :
Hence the length of the image is 5 cm.
Option B which is:
Tagged Spherical mirrors: mirror formula and magnification. Machine-assigned, so read it as a strong shortlist rather than a verdict.