Their self-perception is not relevant
For the people asking, we have How To Ask and Why are fellow users removing thank-you's from my questions?. For people answering and editing, we have https://meta.stackexchange.com/questions/2950; https://meta.stackoverflow.com/questions/343721; No Thanks, Damn It! and more.
Putting aside any semantic argument about who is or is not "a programmer", "a beginner" etc., such observations do not belong in questions. OPs (and many answerers, too) should be reminded that Stack Overflow is not a discussion forum - one of the key implications of this is that questions need to be direct questions that are about the problem, not the person asking it, nor any aspect of that person's life experience, as "a programmer" or "a beginner" or otherwise. The person who asks the question is not relevant to the question.
Commentary that is irrelevant to the question should be removed. Questions should be edited to ask the question as clearly, directly and explicitly as possible; this is more important as the question gains popularity and "frequency" (i.e.: other questions closed as a duplicate of it).
If the change that is needed is simple, that does not exclude the question from being suitable for the site. If the change that is needed can be understood by following a tutorial, that also does not necessarily exclude the question (although it is always fine to suggest in the comments, politely, following a tutorial to those who would benefit).
The question is unsuitable if:
it has been asked before: please vote to close questions as duplicates. IMHO it is also appropriate to be more liberal in the interpretation of "duplicate" the simpler the question is - because simple questions are, inherently, asked by people who are less capable of expressing them clearly (more charitably: asked in more creative ways by people who mistakenly believe their circumstance is special).
it is multiple questions in one, even if not phrased that way. In other words, if there are multiple issues with the code that is shown. Such a question "needs more focus". Generally, this includes cases where OP is treating Stack Overflow as a code-writing or homework-doing service; a task description is not a problem, and therefore a request to have a task performed is not a question - but instead, an implication of multiple questions.
it can be answered using knowledge/understanding already demonstrated in the question, or by applying basic logic/reasoning below the level of what is already demonstrated. This is admittedly a somewhat broad interpretation on my part, but it's what "not reproducible or caused by a typo" is meant to capture (and why we used to call it "too localized" before everyone decided that that, too, was being misinterpreted). The point is: questions like this can't help other people, because it's practically impossible to get into the same spot in an organic way - OP's reason for being stuck is a failure to apply basic debugging techniques, take a break if necessary, and think clearly. (Note that it is perfectly fine to ask a question that is well below your own level. The criterion here is the content of the question post, not anything about the person asking. Again: the person asking is not relevant to the question.)
it does not make sense to ask, and appears to be based in a misconception that can't readily be turned into a clear, explicit question. Such a question "needs details or clarity". Typically, this entails someone asking to do something that's both impossible and nonsensical on its face; while there might be a possible, reasonable thing to do underlying that question, and even though that might be what OP actually wants to know about, questions like this typically leave doubt as to what task is actually underlying the impossible request. This situation can also come about because of an XY problem.
Someone wants to solve a problem without actually writing code. Questions about using Google Sheets are only on topic insofar as they involve, at some point in the process, writing code. Spreadsheet formulas are code. A "specific feature of [a] web app" is probably not.
In other words: questions should be closed when they fit into the stated reasons for closing questions. They aren't perfect (and I have many complaints), but they are pretty good. The rules apply the same to questions that start with a disclaimer about skill level, as to questions that don't, because - once more - that is information about the person asking the question, who is not relevant to the question.