Concept:
The quantity of bleaching powder required depends upon the chlorine demand of water and the percentage of available chlorine in the bleaching powder.
The required chlorine is calculated as
\[
\boxed{
\text{Chlorine Required}=
(\text{Chlorine Demand})\times(\text{Volume of Water})
}
\]
The quantity of bleaching powder is
\[
\boxed{
\text{Bleaching Powder}
=
\frac{\text{Required Chlorine}}
{\text{Fraction of Available Chlorine}}
}
\]
Step 1: Calculate the chlorine requirement.
Given,
\[
\text{Volume}=5000\text{ L}
\]
\[
\text{Chlorine Demand}=2\text{ mg/L}
\]
Therefore,
\[
\text{Required Chlorine}
=
5000\times2
=
10000\text{ mg}
=
10\text{ g}
\]
Step 2: Calculate the bleaching powder required.
Available chlorine
\[
=25\%=0.25
\]
Hence,
\[
\text{Bleaching Powder}
=
\frac{10}{0.25}
=
40\text{ g}
\]
Thus,
\[
\boxed{40\text{ g}}
\]
Therefore, the correct option is
\[
\boxed{(B)\;40\text{ g}.}
\]