Final answer:
The gravitational force does negative work on the ball over its entire trip.
Step-by-step explanation:
The gravitational force does negative work on the ball over its entire trip. When the ball is thrown upward, gravity opposes its motion and does negative work.
As the ball returns and is caught at the same height, gravity again does negative work.