Which spectral class does a star fit into if it has a surface temperature of 20,000 K?

G
B
M
A

The spectral class that a star fits into if it has a surface temperature of 20,000 K is B.

If a star has a surface temperature of around 20,000 K, it would fall into the spectral class B.