No direct "homework complete" cheat exists in The Sims 2, but these testing cheats help:
Enjoy Sims 2! 😊