B. It exhibits simple harmonic motion.
m = mass attached
k = spring constant
a = acceleration of the mass
x = stretch of the spring
spring force is given as
F = - kx
the spring force causes the mass to accelerate , hence
F = ma
- kx = ma
a = - (k/m) x
since the acceleration is proportional to the displacement , hence the motion is simple harmonic in nature.