A motorcycle horn:

Use your signals, lights, lane position, and horn to communicate with other drivers. Your horn should be used in any situation where you need to get someone's attention quickly, such as when another driver is moving into your lane at an unsafe time.
DMV Writen Test