A system performs work ΔW when an amount of heat is ΔQ added to the system, the corresponding change in the internal energy is ΔU. A unique function of the initial and final states (irrespective of the mode of change) is -
Change in internal energy (ΔU) depends upon initial an find state of the function while ΔQ and ΔW are path dependent also.