单项选择题

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

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