Ans 1: (Master Answer)
The correct answer is D
Current carrying wire produces magnetic field, but direction of magnetic field on the given points X and Y are different.
This is found by right hand thumb rule. So magnetic compasses on X and Yexperience magnetic force of same magnitude but in opposite directions. Hence, the needles will deflect in opposite directions.