Answer
B. X
A plate of glass or metal ruled with very close parallel lines, producing a spectrum by diffraction and interference of light.
diffraction grating is an optical component that splits and diffracts light into several beams travelling in different directions. The light emerges with its colours separated.