I wonder if there is any difference between "1" and "2".
1. To do your homework. ( Did you do your homework?)
2. To get your homework done. ( Did you get your homework done?)
1 is a straightforward question while 2 suggests that it was very difficult or there was a lot of it so it was more of a struggle.