The correct response is:
It changes both the direction and the speed of the ball.
When a tennis player hits the ball with a racket, the force exerted by the racket alters both the speed (accelerating it) and the direction (changing its trajectory) of the ball.