Sounds like a chemistry lab at school =D
Your answer is somewhat right. I remember when I took AP chemistry, they stressed on clarifying my statements. First of all, the compound does not evaporate. Only the water does. A better word to use instead of compound would be salt, becuase you might forget to say 'ionic' before it and you would lose points. Again, the salt itself does NOT evaporate, only the water.
If you did not heat the hydrated salt enough you would end up with excess water, giving you a larger mass at the end which means a smaller difference (betwen hydrated and dehydrated) in turn, giving you LESS grams of water, which turns out to be less moles. End result: Less moles of water.
(Personally, I hated questions like these, always got me confused :S )