Sudden braking is permitted when:
Pick an answer to test yourself.
Why this answer?
Correct answer: A. It is the only way to prevent an accident.
Sudden braking surprises whoever is driving behind you and may cause him to hit you. So sudden braking is allowed only when there is no other way to prevent an accident.
More detail
What lets you stop in time when the vehicle ahead brakes suddenly is keeping enough distance from it.
Where does the law say this? (regulation 53)
The law is quoted in Hebrew, as published: there is no official translation.
לא יבלום נוהג רכב את רכבו פתאום, אלא לשם מניעת תאונה שאי־אפשר למנעה בדרך אחרתTraffic Regulations, regulation 53 · Full text
Keep practising from hereFree, no ads, no sign-up. The app remembers what you got wrong.