She _______ her homework for an hour before she went out to play. A. Had done B. Has done C. Did D. Was doing