Preparation of exam or preparation for exam. Which is correct? [duplicate]

If you are preparing to take an exam (like a test) or have an exam (such as a medical procedure), it would be 'preparation for exam.' If you are the person composing the test or preparing the elements of the procedure, it would be 'preparation of exam.'