单项选择题

Having been ill in bed for nearly a month, he had a hard time ______ the exam.

A.pass
B.to pass
C.passed
D.passing