The correct response is: It changes both the direction and the speed of the ball.
When the tennis player swings the racket and strikes the ball, the impact between the racket and the ball alters both the ball's velocity (speed) and its trajectory (direction).