Answer
(a) zero
(b) zero
(c) $-100J$
Work Step by Step
(a) We know that
$\Delta U=Q-W$
We plug in the known values to obtain:
$\Delta U=50J-50J=0J$
(b) As $\Delta U=Q-W$
We plug in the known values to obtain:
$\Delta U=-50J-(-50J)=0J$
(c) $\Delta U=Q-W$
We plug in the known values to obtain:
$\Delta U=-50J-50J=-100J$