[A]
The teacher asked if Ram would like to go on a trip to Kashmir and Ram replied yes.
[B]
The teacher asked Ram if he would like to go on a trip to Kashmir and Ram replied yes.
[C]
The teacher asked Ram if he would have liked to go on a trip to Kashmir and Ram replied in the affirmative.
[D]
The teacher asked Ram if he would like to go on a trip to Kashmir and Ram replied in the affirmative.