When sulphur is heated in air it burns, combining with oxygen to form sulphur dioxide gas, SO2. Sulphur is a non-metal, and like most non-metal oxides, sulphur dioxide is an acidic oxide.
(a)
(i) Dry litmus paper: no change. Dry sulphur dioxide cannot give an acid, because an acidic oxide shows its acidic nature only after it dissolves in water. With no water present, dry blue litmus stays blue (and dry red litmus stays red).
(ii) Moist litmus paper: blue litmus turns red (red litmus stays red). The gas dissolves in the water on the paper to form sulphurous acid, and this acid turns blue litmus red:
SO2(g)+H2O(l)→H2SO3(aq)
(b) Burning of sulphur in air:
S(s)+O2(g)→SO2(g)
This is why the oxides of non-metals are called acidic oxides, while the oxides of metals (such as magnesium oxide from burning magnesium) are basic.

Burning sulphur: the gas does nothing to dry litmus but turns moist blue litmus red.