When passing another car, sound your horn if the car is:

Use your horn to communicate with other drivers on the road. Use your horn if you are passing a driver who does not see you and is about to turn into your lane.
DMV Writen Test