When your vehicle is stationary, only sound the horn if you think there’s a risk of danger from another road user. Don’t use it just to attract someone’s attention. This causes unnecessary noise and could be misleading.
You may also be interested in these theory test questions