Study habits may differ depends on the subject and how the exam is structured. However, I believe there are several things you can do to prepare.
First, start studying early. In college, I would start to review the material 2 weeks before the exam, since we usually only had 2-3 tests per semester. If I had a memorization exam, I would start studying quite early and prepare flash cards. Everyday I would review the cards up until the day of the exam to prepare.
I would highly advise you to run practice exams. Redo past homework assignments but treat it as if it were the actual exam. If you go over homework problems with the answers right in front of you, you are reviewing the work but not actually testing yourself. Look at sample problems and only the materials you would have on the test day to see if you would be able to solve it. Afterwards review the areas you struggled with and complete other test problems. Recreating the test environment can help you feel at ease for the exam.