All of us are afraid of failures and we all fail in some and pass - in some it may be an examination/ in other aspects of life.
The best thing to do with the failures is to learn from the mistakes that we did and try to correct them rather than brood on the failure per se. The same probably holds true for examinations too. If you fail once, go through the mistakes that you did / the parts that you did not cover (study properly) / if possible get some coaching / other training, etc. - all of these will help you get through the examination.
If some of your friends have left the course, as the test was difficult, I am sure there were lot many who were able to clear the tests.
So if you are really interested (really interested! - not because your parents or someone else wants you too) in getting through this course / test, I am sure you will.