What lexical category are the wh- question words? [duplicate]

All question words are not adverbs. They act as almost all of the parts of speech, except maybe as the verb.

From the Practical English Usage by Michael Swan:

enter image description here