Using the OBAFGKM spectral type mnemonic, or reading off of an H-R diagram (provided on this quiz), the A0 main-sequence star is the hottest, followed by the F5 supergiant, G2 white dwarf, and K8 giant.