In Spanish, you would say: ¿Comiste?
This is the simple past tense of the verb comer, which means ‘to eat’. The form comiste is used for the second person singular (informal), so it is appropriate when you are speaking to someone you know well, like a friend or family member.
If you were to ask formally or to a group of people, you would say: ¿Comieron? which is the plural form of the past tense for comer.
Understanding these variations is helpful when conversing in Spanish, as it ensures that the context of the conversation is appropriate for both the situation and the relationship between speakers.