Good hiring techniques involve some form of this. I've often seen people present difficult programming challenges fully expecting the interviewee to say "I don't know how to do this, but I know how I would."