To determine the spectral class of a star with a surface temperature of 20,000 K, we can reference the typical temperature ranges associated with different spectral classes:
- O type: 30,000 K and above
- B type: 10,000 K to 30,000 K
- A type: 7,500 K to 10,000 K
- F type: 6,000 K to 7,500 K
- G type: 5,000 K to 6,000 K
- K type: 3,500 K to 5,000 K
- M type: below 3,500 K
Given that 20,000 K falls within the range of 10,000 K to 30,000 K, the star would be classified as a B type spectral class.
The correct response is B.