The correct option is A refraction
When light rays from a distant star pass through the earth's atmosphere, they change their direction continuously due to the varying optical density of the atmosphere. Also the changing physical conditions of the atmosphere affect the amount (brightness) of starlight entering our eyes. Thus, stars appear to twinkle in the night sky.