Step 1: Understanding the resonance condition.
The pipe closed at one end has a fundamental frequency with a wavelength of \( \lambda = 4L \), where \( L \) is the length of the pipe. The string vibrating in the second harmonic must have a wavelength that matches this resonance condition. The wavelength of the string in the second harmonic is \( \lambda_s = \frac{2L}{2} \).
Step 2: Using the wave equation.
The mass per unit length of the string is \( \mu = \frac{m}{L} \), and the wave speed on the string is given by:
\[
v_s = \sqrt{\frac{T}{\mu}} = 320 \, \text{m/s}
\]
Substituting the given values and solving for the mass, we find that the mass of the string is 10 grams.
Step 3: Conclusion.
The correct answer is (C), 10 grams.