The tail of a comet would appear to become longer as it gets closer to the Sun. This is because the heat from the Sun causes the comet's ices to sublimate, releasing gas and dust that form the tail and push it away from the Sun. Therefore, the correct response is:
as it gets closer to the sun.