To keep noise down and avoid needlessly disturbing other road users, sounding the horn in built-up areas is tightly restricted. You may only use it when there is a real danger and it is the only way to prevent an accident.
Study on your phone. The same questions, always at hand.