I just noticed on different places that some answers are quite specific to the question that was asked and they have been downvoted because of not covering the more detailed part.
For example, an answer regarding how to split strings was posted. The answer was perfectly right but hadn't considered the rule of "never trust what has been submitted" and the answer was marked negatively.
As I am new to Stack Overflow, what is the standard when you answer a question? Should you include a complete scenario taking into account even the smallest part?