Concept:
The shortest stopping distance occurs when the braking force is equal to the maximum frictional force.
The maximum deceleration is
\[
a=\mu g,
\]
where
\[
\mu=\text{coefficient of friction},\qquad
g=\text{acceleration due to gravity}.
\]
The stopping distance is obtained from the equation of motion
\[
v^2=u^2+2as.
\]
Since the car comes to rest,
\[
v=0.
\]
Step 1: Calculate the maximum deceleration.
Given,
\[
u=20\,\mathrm{m/s},
\]
\[
\mu=0.4,
\]
\[
g=10\,\mathrm{m/s^2}.
\]
Therefore,
\[
a=-\mu g
=-(0.4)(10)
=-4\,\mathrm{m/s^2}.
\]
(The negative sign indicates retardation.)
Step 2: Apply the equation of motion.
Using
\[
v^2=u^2+2as,
\]
\[
0=20^2+2(-4)s.
\]
Hence,
\[
400=8s,
\]
which gives
\[
s=\frac{400}{8}=50\,\mathrm{m}.
\]
Therefore,
\[
\boxed{s=50\,\mathrm{m}.}
\]
Thus, the correct option is
\[
\boxed{(D)\ 50\,\mathrm{m}.}
\]