单项选择题

By the time I got home, my grandmother__________ the dinner and was watching TV.

A.prepared
B.prepares
C.hadprepared
D.hasprepared