(a) Work done is positive. It is obvious that both the force and the displacement are in the same direction.
(b) It should be observed that the object’s displacement is upward, but the force of gravity is downward. As a result, the work completed is negative.