The best answer to the question of how changing the shape of a water glass affects the refraction of light is:
B. Changing the shape of the glass will change the angle of light entering the glass; this will change how light is refracted.
This is because the shape of the glass can influence the path that light takes as it enters and exits, which affects the angles of incidence and refraction according to Snell's law. While the material does play a role in how light is refracted, the question specifically relates to how the shape affects refraction.