The correct response is:
It changes both the direction and the speed of the ball.
When the tennis player swings the racket and hits the ball, the force exerted by the racket changes the ball's speed (accelerating it) and alters its direction, depending on the angle and force of the racket's impact.