单项选择题

When I was about to go out, the door opened ______.

A. of itself
B. by itself
C. oneself
D. for itself