The correct answer is:
It changes both the direction and the speed of the ball.
When the tennis player hits the ball with the racket, the force applied by the racket alters both the speed (accelerating the ball) and the direction (redirecting the ball) of the ball's motion.