How is the curve determined?

<p>Is it based on the difficulty of the questions beforehand, or how everyone does in the nation(percentiles)? Would that explain the fact that the test after the summer has a harsh curve because many people are fresh off of studying during the summer?</p>