The gravitational force is conservative: the work it does is equal to minus the change in the associated potential energy. This is positive, since the ball is caught above the height it was hit, so the work done by gravity is negative.
The frictional force is not conservative. It acts opposite to the direction of motion. The work it does is always negative.
[There is ONE correct answer above. Choose the one you think is correct and press the "Check Your Answer" button below to see if you are right.]