问题

mbered _____ the door before I left the office, but forgot to turn off the lights.
A:locking
B:to lock
C:having locked
D:to have locked;
B:to lock
C:having locked
D:to have locked;
正确答案是: