What is the mood of the sentence below?

Upon hearing the fire alarm, walk calmly to the nearest exit.
A.
indicative

B.
imperative

C.
interrogative

D.
subjunctive

B. imperative