Imagine that we apply a force $F$ on a frictionless surface to move a
body by a distance $d$. (The body starts at rest and is stopped after
moving a distance $d$.)
If the force $F$ we apply is constant over the entire distance $d$, then the only way the body can stop at the end of the distance $d$ is for another greater force to be applied opposite to your force for some time (and distance) prior to the body reaching $d$, causing the body to decelerate and come to a stop at $d$.
- Is the work done $F d$?
Yes, the work done by you in applying the force $F$ is $Fd$
But from what I understand since the initial and final velocity of
body is zero, the change in KE is also zero and hence work done on the
body is zero.
Yes, but it is the net work done on the body that equals zero, not the work you did on the body. The net work equals the positive work of $Fd$ that you did, plus the negative work done by the opposing force that resulted in bringing the body to rest at $d$. That negative work is $-F_{ave}d$ where $F_{ave}$ in this case is the average force exerted by the opposing force over the entire distance $d$ with $F_{ave}=F$. It is the average opposing force over the distance $d$ because it had to be greater than $F$ while it was applied to decelerate the body.
Positive work to move it and when it attains some speed, we have to
apply a force to stop it and so negative work to stop the body.
Correct. The opposing force, while it was applied during, had to be greater than $F$ to decelerate the body doing negative work.
- If the same body is moved such that it is brought back to original
position, then is the work done zero? Why? because it is a closed path
or because the change in KE is zero?
The net work is zero because the change in KE is zero. It doesn't have to be a "closed path". All that matters is that it starts at rest and ends at rest, or that its initial and final velocities are the same.
We generally do work against some force (gravitational, frictional).
Here none of these forces are there, so against what force are we
doing work?
To say "we generally do work against some force" is not true. You don't necessarily do work against forces that do negative work as in your example. If there was no opposing force to bring the body to a stop, then you would still be doing work of $Fd$. The difference is the body would have kinetic energy of $\frac{1}{2}mv^{2}=Fd$ after moving the distance $d$.
Hope this helps.