Correct answer: Both force and torque
In a non-uniform magnetic field, the magnetic needle experiences a gradient in the magnetic field strength, which results in both a force acting on it and a torque that tends to align it with the field. The force arises from the variation in magnetic field strength across the needle, while the torque is due to the interaction of the needle's magnetic moment with the field.