Re: The teacher asked him to explain why had he been absent for such a long time.
You are right. It should be "... to explain why he had been absent ..."
Originally Posted by Tan Elaine
Remember - correct capitalisation, punctuation and spacing make posts much easier to read.