Homework is schoolwork that teachers give to students to do at home in the evening or at the weekend.
Have you done your homework, Gemma?
你做完家庭作业了吗,杰玛?
If you do your homework, you find out what you need to know in preparation for something.
Before you go near a stockbroker, do your homework.
在你去见股票经纪人之前,先要做好必要的准备工作。