This assumes that the assignments and the exam cover the same material. That's not always the case.
That would be really poor course design :-)
That would be really poor course design :-)