1 · See it
She asked, "What did you do before?"
did is a form of do, "asking questions".
2 · Learn it
do you ...?now: Do you need help? does it ...?now, he/she/it: Does it hurt? did you ...?past: Did you like it? what did you do?past question yes, I doshort answer yes, I didshort answer, past