Oxides of metals are basic in nature and on reaction with water, they produce bases. Sodium, magnesium and copper are metals. Therefore, Na2O, MgO and CuO are basic oxides.
Sulphur is a non-metal and oxides of non-metals are either acidic or neutral. Therefore, SO2 is an acidic oxide as it reacts with water to produce an acid.