单项选择题

The children were (surprised) when the teacher (had) them (to) close their books (unexpectedly).

A.surprised
B.had
C.to
D.unexpectedly