The correct option is B Light ray does not travel in the same direction in all media.
Obliquely incident light rays change their direction upon change of medium depending upon the density of the medium. Water is optically denser medium compared to air. The light from the part of the pencil which is immersed in water, travels from water to air i.e, denser medium to rarer medium. Therefore, it light bends away from the normal. Because of this bend, the pencil appears to be bent or broken.