Which of the following can be used to determine the temperature of a star?
A. Light from sunspots
B. Line spectra
C. Blackbody spectrum
D. the star's magnetic field