Depending on your major, you usually have to pass all professional courses and all elective courses. If you fail, you can make up the exam next semester. They won't give you a degree until after anyway.
But don't worry, make-up exams are easy to pass.