The correct option is B Both A and B
In his experiment Oersted observed that the deflection of the needle compass changed according to the direction of the current and also as the current in the wire increased, the deflection of the needle increased. Thus he inferred that the strength and direction of the magnetic field depends on the magnitude and direction of current.