One end of an ideal spring (spring constant k) is attached to a rigid wall and other end to a block kept on a horizontal smooth surface.The spring is always horizontal .The block is released from rest when the spring is elongated by x
(A) The maximum work done by the spring on the block in the subsequent motion is 1/2kx2
(B) The block is at rest when the spring is in its undeformed state
(C) The spring always does positive work when the block moves away from the wall.
(D) The spring does negative work whenever the block slows down.