Homework requests in which the asker shows no effort can indeed be considered vague, ambiguous, etc., in the sense that there is no indication of what in particular the asker needs help with.
For example, consider this sample question (which I made up just now):
In Java, define an int[] array1 with size 100 and use a loop to assign it values {1, 2, ... , 100}. Then define int[] array2 also with size 100 and use a second loop to assign it values such that array2[i] is a pseudorandom integer between 0 and array1[i] inclusive (where i ranges over all indices). When you are done, find the average of the values in array2 and print the result to standard output with 4 decimal places of precision, i.e., there should be four digits after the decimal point, with trailing zeroes allowed.
What is the solution?
The problem statement is, I think, quite clear. What's not clear is whether the asker knows how to use loops but not generate pseudorandom integers (in which case we waste time explaining how loops work), or knows how to generate pseudorandom integers but not how loops work (in which case we waste time explaining pseudorandom integers), or loads of other combinations all involving us wasting our time because the asker is too lazy to post something more specific.
Even in simpler questions, the same reasoning can apply. Suppose someone asks
In Java, what is the value of a
after the following line executes?
int a = 2 + 50 / 9;
Now, it's possible that the asker knows about integer division but not precedence, or knows about precedence but not integer division...
For this reason, and for the reasons mentioned by others, I think the description of "Not a real question" for these types of questions is generally acceptable.