You may honk your horn when you:

One situation where it is appropriate to use your horn is if you lose control of your vehicle. In this case, sound your horn to alert other drivers.
DMV Writen Test Logo