The liquid will not come out of the hole when the horizontal acceleration of the vessel causes the liquid to remain stationary relative to the vessel.
This condition can be met if the effective acceleration due to gravity in the horizontal direction is balanced by the force due to the liquid column's height.
The horizontal acceleration required can be found using the following relation derived from the balance of forces:
\[
a_{\text{horizontal}} = \frac{2gh}{l}
\]
Thus, the correct answer is (d).