Homework

In The Sims 2, The Sims Stories, The Sims 3 and The Sims 4 children and teens get homework on school days. Failing to complete homework generally results in bad grades.

The Sims 2 and The Sims Stories
I have no idea figure it out for yourself.

The Sims 3
On school days, children and teens will come home with homework in their inventory. This is unlike The Sims 2 and The Sims Stories, where they would place the homework down. They can simply "Do Homework" on their own, "Do Homework With..." another friend of their age group, or "Get Help From" an older Sim on the lot. Sims can also do someone else's homework, or copy someone's homework if that person already did it, although this can cause after school detention. Sims may stop doing homework if they are hungry, tired, have the "Stressed" moodlet, or have a low bladder meter. Bookworm Sims get homework done faster, and the Public Library is a good place to study. In Supernatural, Vampire children also do homework faster than normal children, and Witch Sims may magically finish it in a matter of seconds. Homework is a Hidden Skill.

Students who skip homework or do not complete it on time will receive a bad mark in the Homework area of their school performance (This can be found in the 'School' section of the Simology panel) and may get detention. Students who complete their homework on time get a good mark in this section. However, homework can be finished while at school using the "Work on Late Homework" option. However, if the teacher catches them, they may get an after school detention. Good students grow up to be good adults, so it is important that young Sims maintain good grades. If a Sim has an A when they age up, the player will be able to choose his or her next trait.

In Generations children can bury their homework in the sandbox but will get a bad grade for it.

The Sims 4
Once a Sim becomes a child, they will automatically receive a homework book in their inventory, whether or not they have attended school yet. Children will have a yellow book labeled "Grade School Homework" while teens will receive a blue book labeled "Homework". When a student receives an A from school, they will be given the option "Do Extra Credit" when hovering over their individual homework books. Children have the ability to receive help from adults. Unlike previous games, children who neglect their homework have a fair shot at keeping their school performance high by completing other tasks such as maintaining certain moods or building skills.