Actually, a little more detail is needed. Measure the length of the spring when it is relaxed, that is compressed with no load. We'll call that the "compressed length". Now consider the bent spring. It will have an inside edge where all the coils tend to be compacted and an outside edge where they are the most loose.
When you attach the sprint to the wall, measure the distance between where the two inside edges are attached to the wall. We'll call that the inside distance.
We'll also assume that we are doing this in free fall - no gravity.
Then, if pi times the inside distance is equals the compressed length, then the spring will form an arc and each full coil along it length will be bent in the same fashion.
If pi times the inside distance is greater than the compressed length, then the spring is being stretched and the ends closest to the wall will take up most of the bend.
If pi times the inside distance is less that the compressed length, then the spring is loose and can easily flop around. In gravity, it would flop down. Without gravity, it's far more complicated - but it will probably end up spreading away from the attachment points before eventually closing back in along an arc.