The correct option is B refraction of light by different layers of varying refractive indices
The atmospheric refraction occurs in a medium of gradually changing refractive index. The path of rays of light coming from the star goes on varying slightly. The apparent position of the star fluctuates and the star appears to twinkle.