Magnetism is the product of a moving charged particle. We can have electricity without magnetism but we can not have magnetism without electricity.An electro magnet is made so that we have a soft metal core and electricity around it. A bar magnet is a normal magnet in bar shape with permanent magnetism.
The elastic potential energy of a spring is given by

where k is the spring's constant and x is the displacement with respect to the relaxed position of the spring.
The work done by the spring is the negative of the potential energy difference between the final and initial condition of the spring:

In our problem, initially the spring is uncompressed, so

. Therefore, the work done by the spring when it is compressed until

is

And this value is actually negative, because the box is responsible for the spring's compression, so the work is done by the box.
It would either break or stop depends on the density
I think you meant to say "procedure" instead of "produced".
Choice B is the answer as it is the safest and most sensible (to prevent damage to clothing or start a fire for example). The other choices are nonsensical or silly.