People can vote however they want to, so without a user explicitly explaining their vote in a comment you cannot know why users voted the way they did. I can take some guesses:
Perhaps users who saw this question found some of the answers helpful and upvoted the question as well.
Perhaps this user has a peer group (on Facebook or Google+, or a club or class) with which he shared the question and they upvoted it for him.
Perhaps users sympathized with a new programmer who was making a real effort to learn the craft. We get so many truly awful questions from beginners with no research, no apparent effort - perhaps to some users this question was a breath of fresh air. (At least 12 people seem to have thought so. Interestingly, the author of that comment later recanted.)
I've been working on documenting voting culture and trends. You may find it interesting and helpful:
Getting to Know Stack Overflow's Voting Culture
In any case, the attention you've brought to it seems to have quickly changed the balance of votes. The question is now down to a total score of 12 and has been closed.