The correct option is B Atmospheric refraction
The twinkling of a star is due to atmospheric refraction of starlight as starlight undergoes continuous refraction before it reaches the earth. The atmospheric refraction occurs in a medium of gradually changing refractive index. Since the atmosphere bends the starlight towards normal, the apparent position of the star appears to be slightly different from its actual position. The star appears slightly higher than its actual position when viewed near the horizon. This apparent position of the star is not stationary since the physical conditions of the earths atmosphere are not stationary and cause the path of the starlight reaching the earth to vary.