While a star is being observed through a telescope, the visible light coming from the star shifts from red to blue.

Which is true about this star? I know for sure it's either B or C

A.
The shortening of wavelengths indicates that the star is moving away from Earth.

B.
The lengthening of wavelengths indicates that the star is moving toward Earth.

C.
The lengthening of wavelengths indicates that the star is moving away from Earth.

D.
The shortening of wavelengths indicates that the star is moving toward Earth.