Well, that is a more general rule. I see stories of people who send out "hundreds" of CVs and get no response. In truth your CV should really be considered a framework, that you customize to each application based on the job ad.
A CV is a sales document, you mustn't lie on it, but its purpose isn't to be a completely objective file on you. It's purpose is to get you an interview. Every CV I have ever sent has been tailored to show that I would be a great fit for that job. If I have say 10 skills and they want 5 of them, then those are the 5 I'll list for my last job experience and simply not mention the others except perhaps in passing.
Specifically to the OP, 5 pages is far too long. At your level, even 1 page is enough. And be careful with "experience" because it doesn't mean what you think it means. Basically, programming that you were not paid for, or is not "famous" (e.g. well-known open source) doesn't count as experience for the purpose of this. I'm in my 30s and I have more experience than you've been alive. Now, I'm cool, but most of the people who read that will immediately disregard you.