The maximum height of the rocket is determined as,
where u is the initial velocity, g is the acceleration due to gravity and
As the value of acceleration due to gravity is constant, thus, the height reached by rocket can be changed with the magnitude or the direction of the initial velocity of the rocket.
Hence, the first option (initial velocity of the rocket flight time of rocket) is the correct answer.