(a) In taking a system from one state to another by different processes, the heat transferred Q and work done W are different, but their difference Q-W is same for all processes. It gives the internal energy of the system.
$\mathrm{\Delta}U = Q - W$
Thus, internal energy U of a thermodynamic system is a characteristic property of the state of the system, it does not matter how that state has been obtained.