What is the purpose of this sentence?

Lock the door on your way out

A.) to ask a question
B.) to make a statement
C.) to give an order
D.) to express feeling