Which action best demonstrates the transformation of mechanical energy to heat energy and sound energy?

stretching a string
squeezing a sponge ball
throwing a ball upwards in air
striking a hammer on a nail