In which direction should a boy apply the force, in order to stop a trolley sliding downward on a slope?
Upward direction
The boy has to apply a force in the upward direction, to stop it. The applied force acts against the direction of motion of trolley and hence it stops. If you apply a downward force, the trolley will further slide down and will not stop.