The color of a star is determined by its temperature (option B)
Why is this correct?
A star's color is influenced by it's temperature. This is governed by a phenomenon known as "black-body radiation." This principle states that as an object's temperature rises, the light it emits tends toward shorter wavelengths.
Stars radiate light across a spectrum, but the color we predominantly see is linked to their surface temperature. The hue that stands out most strongly to our eyes corresponds to the star's peak emission, and this color signifies its temperature.