Such questions as you reference are almost always bad, but it can be hard to nail down why. It sometimes seems as if you have to know the answer before you can know whether the question is a good one.
Here is what definitely works for SE:
- A question that states a problem, a proposal for solving it and a focused question about a specific aspect of the proposal that is unclear.
- A pair of question and answer that are of general nature and thus likely to help others.
If neither applies, we usually have some variant of "this is my attempt on the latest exercise, please check it before the TA so I can get maximum points!" (assumption on my part). This is bad, although the problem is subtle.
- If the attempt is wrong good answers can be given, pointing out the mistake and proposing (hints for) fixes.
- If the attempt is correct, nothing can be said but "yes, it's correct".
The second case is a problem. Even if the OP can not know the case applies, they could have phrased the question so that it can not occur. Therefore, I suggest we shoot down all questions that are not 1. or 2. without hesitation (as NARQ).
If a questioner wants their work checked, they should be able to pinpoint their doubt and providing a question that allows meaty answers either way (i.e. for "yes" and "no" answers). This, for example, would be okay:
So I got exercise problem A. Here is my attempt: [...]
I am unsure about step (*). It seems to hold because of X, but how do I take care of Y?
Whether the attempt is correct does not matter, answers have explaining to do either way.