I was asked by a recruiter one time. I answered with what my salary requirements were. This caused him to grow quite angry, explain that it didn't matter what my requirements were, and hang up on me. Mostly, I was amused. This was before that question was illegal in California.