Work done by a gas in thermodynamics
Sign conventions can make 'work' confusing, but the question here asks for the work done by the gas. When a gas expands, it's doing work (it's losing energy), so it's actually $W = + P \, \mathrm dV$, inverting all the inequality signs. So option B) is correct.