The following is true regarding sign of heat and work.
Heat absorbed by the system has positive sign. Heat released to the surrounding has negative sign. Work done on the system has positive sign. Work done by the system has negative sign.
Therefore
The answer would be
C. +q, +w