单项选择题

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

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