1. What is the primary purpose of a fire alarm system?

A. To detect intruders
B. To detect and alert occupants of a fire
C. To control lighting
D. To monitor HVAC systems