(a) Salina got hiccups due to the sudden movement of the diaphragm (jerk). This causes the air to rush into the lungs, followed by quick closing of the vocal cords. This produces a sound.
(b) Drinking cold water relieves the irritation produced in the diaphragm and as a result of which it continues the normal movement. Thus, preventing the hiccups.