Questions & Answers about ¿Qué esperabas? Es tu hermano.
Why use the imperfect tense esperabas here instead of the preterite esperaste?
The imperfect tense is used here because it asks about an ongoing state of mind or attitude in the past (similar to "What were you expecting?"). If you used the preterite (esperaste), it would sound like you are asking about a single, sudden expectation that started and ended at one specific moment, which doesn't fit this natural conversational context.
The verb esperar often means to wait or to hope. How do we know it means to expect in this sentence?
The Spanish verb esperar covers all three meanings: to wait, to hope, and to expect. You have to rely entirely on context to know which one applies. Asking "What were you hoping?" or "What were you waiting for?" makes much less sense than "What did you expect?" right before saying "He's your brother."
Why doesn't the word tu have an accent mark in this sentence?
Because here it is the possessive adjective meaning "your" (tu hermano). You only use the accent mark for the subject pronoun tú meaning "you" (as in tú esperabas). It is a tiny detail, but confusing the two is a very common mistake even at intermediate levels!