It takes all of 5 seconds in a real work situation to figure out what went wrong. Compile, test, oops.
I'm far more concerned on if someone can build good and maintainable code. Ask questions like
- How would you design for this, write simple abstract design, no code.
- Here's an object design. The customer came and said they wanted this. Formulate a new design -or- discuss reasons why the requirements don't fulfill actual customer needs.