They differed because the laser pointer just had a disco ball effect by reflecting the red light, while the flashlight diffracted the light beams turning it into a rainbow.
This is referred to as band of colors which can be seen as a result of the separation of the components of light by according to the differences in their wavelength.
The spectra of laser pointer and flashlight differed when reflected from the CD surface because the former was a disco ball effect as a result of reflection while latter diffracted the light beams turning it into a rainbow.
Read more about Spectra here https://brainly.com/question/19042165
#SPJ1