It's dangerous and counter-productive to make an assumption about one's skill level, primarily because they're not the only benefactor of the answer. It gets worse if we think about it in inverse: wouldn't the case be that the question they're asking is over their understanding level?
But that's just the OP. Someone else may come along and immediately understand the answer. I know I've been burned once or twice on some really simple answers, whereas I could just understand a more straightforward solution, even if it wasn't catered to an entry-level or pre-entry-level developer.
I've been in some scenarios in which I can describe:
The user has had a question, to which they have some rough understanding of what needs to be done next, but need an extra push.
The user has a question to which they have no idea what's going wrong, but they can take a hint.
The user has a question to which they have no idea what's going wrong and they assume that we're going to be here to help them through it.
In none of those cases have I ever altered my answer to hand-hold the OP through it. By and large, the answers I've given have been either to the tune of:
Provide a rough solution, explaining what the thought process is in plain English, before providing code.
Providing tips on how to proceed next; why one style of code or one approach in code may be less favorable than another.
Clarifying points which may have been muddled by my own explanations.
Provide citations and references to other articles to back up and reinforce the answer that I've made (most often done with questions about Java concerning the JLS).
I'd say the big thing is to be clear about what the solution is, and explain it in plain terms. Code can come after that if it's needed for emphasis, but don't make it a point to only provide code if you can help it. Don't anticipate that someone is going to ask you to hold their hand (as it were), and don't make it out like you wish to offer that kind of service.