问题

Mary quickly closed the door of her room _________ her father could reach it to keep him out.
A:before
B:when
C:as
D:while
B:when
C:as
D:while
正确答案是: