Polar aprotic solvent favours E2 reaction because in polar aprotic solvent, the base remains unsolvated and it readily attacks the proton. Both DMSO and acetone are polar aprotic solvent hence, they favour E2 reaction.
Ethanol and water are polar protic solvent and hence both favours E1 reaction.