Personally (not as a moderator) I lean towards leniency since it's pretty clear that we have people asking coding questions who have very little programming knowledge. As a moderator, it can be irritating seeing coding questions where some basic code knowledge would have answered the question.
I suspect if these questions were redirected to Stack Overflow they would be closed quickly because there's no evidence of research and that site has much higher standards for code questions - basic questions like a null pointer exceptions or index out of bounds errors tend to be downvoted to oblivion before being closed.
If I or one of the other mods gets the time, an additional FAQ item would be a good idea, I think - one that says what should be in a coding question and what makes a good "My code doesn't work" question.
Generally, I'd say the first time a user posts a "my code doesn't work" question with no evidence of research or attempts to fix, ask what they've tried and where they've looked for answers, then politely point out that this is a basic code question, and perhaps the asker should be working through one of the many tutorial sites out there. If that user keeps asking basic code questions with no attempt to research, then start the close votes.
This is, of course, just my opinion.