Which space tool collects light from different stars and separates the light into different colors?

*
Reflector telescope
Refracting telescope
Spectroscope
Radio telescope

Spectroscope