Normally, you see these words at the beginning of direct questions (that is, sentences with question marks at the end). The exception if -ne, which is attached to the end of the first word of the question.