der Knall
bang
A sudden, loud, and short noise, like from an explosion, a shot, or a balloon bursting.
Mitten in der Nacht schreckte ich durch einen lauten Knall hoch.
In the middle of the night, I woke with a start because of a loud bang.

bang
Loading your saved state.
bang
A sudden, loud, and short noise, like from an explosion, a shot, or a balloon bursting.
Mitten in der Nacht schreckte ich durch einen lauten Knall hoch.
In the middle of the night, I woke with a start because of a loud bang.

'Der Knall' (bang) is an onomatopoeic word that imitates a sound. The related verb is 'knallen' (to bang / slam).
Die Tür ist mit einem lauten Geräusch ins Schloss geknallt.
The door slammed shut with a loud noise.
To describe the noise more precisely, 'Knall' (bang) is often combined with adjectives like 'laut' (loud), 'dumpf' (muffled), or 'kurz' (short).
Wir hörten einen dumpfen Knall aus der Ferne.
We heard a muffled bang in the distance.
The colloquial idiom 'einen Knall haben' means that someone is crazy. The structure is fixed: a person 'hat' (has) 'einen Knall' (a bang).
Er will ohne Jacke bei Minusgraden rausgehen? Der hat doch einen Knall!
He wants to go outside without a jacket in freezing temperatures? He must be crazy!
'Knall auf Fall' is a fixed idiom and means 'suddenly and without warning.' It is used like an adverb.
Knall auf Fall hat sie ihre Sachen gepackt und ist gegangen.
Suddenly, she packed her things and left.
When 'Knall auf Fall' is at the beginning of a sentence (position 1), the conjugated verb follows directly after it in position 2. The subject then moves behind the verb.
Knall auf Fall änderte sich die Situation.
Suddenly, the situation changed.
blow / stroke
'der Schlag' and 'der Knall' can both describe a sudden, loud noise. 'Der Schlag' fits especially when the noise is caused by an impact, for example when a door slams shut or something hits the wall hard. 'Der Knall' emphasizes the short, loud noise itself more, often like an explosion, a shot, or a balloon bursting. Learners may confuse the words because both are loud and sudden. If you see the cause as an impact, 'Schlag' often fits. If only the loud noise is important, 'Knall' often fits.

Clara erschrak, als auf der Straße ein lauter Knall zu hören war.
Clara was startled when a loud bang could be heard on the street.
Ein lauter Schlag weckte mich, als die Tür im Wind zufiel.
A loud bang woke me when the door slammed shut in the wind.