Acidic nature of oxide ∝ Number of electron outermost shell ∝ atomic size 1 ∝ electronegative character
In a period from left to right the acidic nature of oxide of element increases. Therefore, N2O5 is more acidic than CO2. Further, when the oxidation number increases, the acidic character is also increases. Hence, CO2 is more acidic than CO.
In a group acidic nature of oxides decreases. So, SO2 is more acidic than CO2 but less than N2O5. Therefore, the correct order of acidic character is as N2O5>SO2>CO2>CO