Water hammer is caused by sudden changes in water flow, notably by quickly closing a valve. This abrupt action generates pressure waves in pipes, leading to the phenomenon. Other options do not typically result in water hammer. ;
Water hammer occurs when there is a sudden change in water flow, and the action that creates this effect is quickly closing a valve. Other options provided do not cause water hammer. Therefore, the best answer is A. Quickly closing a valve.
;