First of all there has to be a reason why you scored lower than you thought in the test, approach the lecturer who marked it, explain that you believe with the amount of study you did that you believe that you have recieved higher marks, ask if they wouldn't mind going through the test and showing the errors you made and where you lost marks. Maybe you approached the test in the wrong way.
As for being a failure, that is b.s. We could all be better, we could all have done things better. I spent 5 years studying animation at college and now i am working in a DIY store. If i had just prepared better for my final year, been more prepared, i could have had a better final year, if i had picked the other college which might have had more supportive tutorial staff, if I didn't go to the pub as much, if only i studied....if only if only.
See the pattern, learn from your mistakes move on. You are good enough to be at this university but maybe its not what you want from life, maybe you be happier studying something else, work at your poetry.
If you wallow you'll never get anything achieved.
Hope this doesn't sound too harsh, just a bit of tough love.
Try seeing how you can improve things for yourself, make some new years resolutions that do this and stick to them. Next month I want to hear about how successful or at least how happy you are.
watched from the wings as the scenes were replayed we saw ourselves now as we never have seen" ian curtis