Answer: Option (b) is the correct answer.
Step-by-step explanation:
When heat is added to a system then vibration between molecules of the system increases. As a result, motion of molecules increases which leads to increase in kinetic energy of molecules.
Therefore, we can conclude that out of the given options, kinetic energy within the system increases and is transformed into mechanical energy as the piston moves upward.