You should honk your horn when you:

Your horn should be used as a warning in situations where you think another driver or a pedestrian does not see you. For example, if a child begins to run into the street in front of your vehicle, you should sound your horn.
DMV Writen Test