Which of the following in correct?


q is positive when heat flows out of the system
q is negative when heat flows into the system


q is negative when heat flows out of the system
q is positive when heat flows into the system