单项选择题

The secretary worked late into night,()the long speech for the president.

A. to prepare
B. preparing
C. prepared
D. was preparing