Option (A) is correct.
Explanation: Open end up: the trapped air supports the atmosphere and the weight of the thread, so its pressure is
P1=76+10=86 cm of Hg
Open end down: the atmosphere pushes up on the thread from below and the thread's weight now acts away from the air, so
P2=76−10=66 cm of Hg
The amount of air and its temperature are fixed, so Boyle's law gives P1L1=P2L2 (the volume is proportional to the length in a uniform tube):
L2=6686×20=26.1 cm
Check: the air and the thread together occupy 26.1+10=36.1 cm, less than the 60 cm tube, so no mercury spills, as stated.
(B) is wrong: it swaps the two pressures; the air expands when the thread stops pressing on it, so the column must get longer.
(C) is wrong: it ignores the thread's weight in the first position and takes the air there to be at 76 cm of Hg.
(D) is wrong: it ignores the thread's weight in the second position and takes the air there to be at 76 cm of Hg.