Question: is q in kj or j?
Answer: You want your q to be in units of Joules or kJ. If you used the q=mC(delta T) with your given C, your q would be in units of (grams)(kJ). In the problem, you were given the heat capacity, not the specific heat capacity. Therefore, you don't need mass to calculate q.