Step 1: Understanding the relationship.
The change in internal energy (\(\Delta U\)) is given by the first law of thermodynamics:
\[
\Delta U = Q - W
\]
Where:
- \(Q = 4000 \, \text{kJ}\) (heat absorbed by the gas)
- \(W = 2000 \, \text{J} = 2 \, \text{kJ}\) (work done by surroundings on the gas)
Step 2: Calculation.
\[
\Delta U = 4000 \, \text{kJ} - 2 \, \text{kJ} = 4002 \, \text{kJ}
\]
Step 3: Conclusion.
The correct answer is (B) 4002 kJ.