单项选择题

The defendant was__________ to ten years in prison for robbing a jewellery shop.

A.accused
B.sentenced
C.fined
D.punished