Concept: The potential energy stored in a spring is given by the formula \[ U = \frac{1}{2}kx^2 \] where
Step 1: {Write the given values.} \[ k = 100\,\text{N m}^{-1}, \qquad x = 0.2\,\text{m} \]
Step 2: {Substitute values into the formula.} \[ U = \frac{1}{2} \times 100 \times (0.2)^2 \]
Step 3: {Calculate the value.} \[ (0.2)^2 = 0.04 \] \[ U = 50 \times 0.04 \] \[ U = 2\,\text{J} \] Thus, the potential energy stored in the spring is \(2\,\text{J}\). Hence, the correct option is (B).