Which best identifies a complete sentence?

A. The actor who played the leading role.

B. Gave her a blue bicycle for her birthday.

C. When Francine cooked diner for the first time.

D. Stacks of books need to be shelved.