Answer
q is negative. w is negative.
Work Step by Step
The combustion of $C_8H_{18}$ is an exothermic reaction as the combustion releases energy. Therefore q is negative.
Also, because we are changing from one mole of liquid to two moles of gas, the reaction involves the expansion of gas and thus doing work on the surroundings. Therefore, w is negative as well.