TITLE: How to study for a test and how to know if you're just not good at math?
QUESTION [16 upvotes]: Well it's the end of the exam season and I failed all four courses I took, that is the first semester in uni. 
Obviously I'm doing something wrong, so how do you prepare for a test ? 
Go over a section of the notes and try to answer questions from homework or from previous tests on that material? 
I noticed that the questions on tests are utterly different from homework.
Also, what if I'm struggling with 90% or more of the questions on homework and tests I try since the beginning of the semester until this day? 
By struggling I mean that I simply can't solve it on my own, no matter what I try or how much time I try. The generous people here helped me a lot through out the semester, I probably wouldn't finish any homework without them. But even now I don't have any confidence that I'll pass any of the tests if I'll try them again... Is this a good indicator that maybe I'm not cut out for doing math degree?
Some more info on the courses I took:

Calculus 1 - 67% fail rate.
Linear algebra 1 - about 45% fail rate.
Intro to set theory - 40% fail rate.   
Intro to combinatorics - wasn't graded yet but many are sure that they didn't pass.

REPLY [2 votes]: Personally, and from what I've observed, allot of the time the problem is insufficient understanding of the methods for writing formal proofs.  
I would strongly recommend the book, How to Prove It: A Structured Approach, which using logic and set theory as the subject matter teaches how to write formal proofs.
The first time I tried abstract math courses I fell flat on my face because I had no idea how to write proofs or for example how to use induction in a proof.  After learning the techniques for proof writing I did much better.  It didn't turn me into a math genius or anything, but so far I've been able to pass all my math courses with decent grades ( 80+ ).