Answer: D
Water stabilises the small acetate anion strongly by hydrogen bonding. DMSO is a polar aprotic solvent: it solvates cations well but anions poorly. The conjugate base is therefore much less stabilised in DMSO and the acid ionises far less, giving a higher pKa.