The correct option is D forward, due to a pressure gradient in the liquid.
As the spirit level is jerked forward, the liquid moves backward relative to the spirit level due to its inertia. Hence, the bubble must move forward relative to the liquid and the spirit level.
Due to backward motion of liquid, there must be a pressure gradient in the liquid. It is this pressure gradient which supplies the force which moves the bubble forward.