The teacher said to the students,"when did you get up yesterday?"
Change into Indirect speech
AThe teacher asked the students when did they get up the previous day.
BThe teacher asked the students when they got up the previous day.
CThe teacher asked the students when they had got up the previous day.
DThe teacher asked the students when they had been got up the previous day.