The best way to prepare for an exam is to actually practice what you will be expected to do on an exam. If you are going to be asked questions that you'll need to answer by recall, you should study by attempting to recall that information and answering questions. This is why self-testing is such an important study strategy to employ throughout your learning process. This does not mean you are writing your own test to complete, though coming up with questions and attempting to answer them is certainly helpful, there are many ways you can use self-testing.
Check out the video below for some tips on how to introduce more self-testing into your studying.