I like the system my university has:
For an average first year module
10% of marks come from written assignments
10% come from computer assignments (we get questions and we submit the answers onto this thingy online)
80% come from the exam.
I like this because the assignments do help us understand the topics in greater detail than just listening to the lecturer and then reading back through our notes.
So I prefer a mixture!