Did you finish your homework yet? The sentence is in the interrogative mood because it is asking a question.

The sentence is asking if the person has completed their homework.