The correct answer is D. No correction required.

The sentence "The teacher was angry with Hemant as he had not done the homework" is grammatically correct. The word "as" is used to introduce a reason or cause. In this case, the teacher is angry with Hemant because he has not done his homework.

The other options are incorrect. The word "on" is used to indicate a location or position. The word "from" is used to indicate a source or origin. The word "at" is used to indicate a time or place.

In conclusion, the correct answer is D. No correction required.