First one was aptly closed IMHO, much too vague. SO is not the right tool for absolute beginners to seek guidance when they have no idea what they're doing: the format asks for a reasonably specific answerable question. Would be nice if upon closing the asker was given pointers to beginner-friendly resources, though.
The other two are better, and (aptly) not closed. Of course you'll get inappropriate votes to close, but I hope they are correctly offset by other votes the (hopefully vast) majority of the time.
Now about this:
> how is closing the question helpful in any way?
I suppose it's to stay focused. When googling I quite often get useful SO results (& upvote those), and I'm happy not having to sift through tons of useless questions.