Why could it be considered rep whoring to ask a question that you already know the answer to and then answer it yourself? Doing this adds to the value of the "knowledge base", and may help others when the question appears in web searches. And if the question and/or answer are good enough to get upvotes, why shouldn't the same person get points for both?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
It is acceptable.
It's not required, but good SO etiquette is to also mark the answer (not question) as community wiki to avoid the appearance of begging rep. This way others can still earn rep in the normal way if they post something to the question, and if someone wants to reward your time they can still do so by voting on the question.
It is acceptable and encouraged to answer your own question on the StackOverflow sites.
See this link.