To answer what is the question of the sentence "Here is the cup", I would like to clarify the word "Here".
Here is origially adverb of place. In this sentence, Here acts as subject. Therefore, i think this sentence is rather not correct. It should be "Here, it is, the cup". And the question will be "Where is the cup?".
I hope, more or less, my answer can help you.