So let's say you are trying to find a freelancer on the internet to do some coding/developing for a web application or a more generic type of aplication (like a c++ developer).
What would be a good test assignment to get them to do before assigning them any real work, to determine their level?
Of course, the common sense tells that the assignment should be not too big, not too small, not too usual so that they could find an implementation somewhere on the net and being easily testable, but are some good concrete examples?
My question assumes that once I receive their work I can asses it's quality by myself. (e.g. I have a lot of coding experience and can distinguish good stuff from the bad stuff)
Also, do you think that such things as correct spelling in the comments, good indentation or long descriptive identifiers versus short abbreviations are any good sign of the skill of a developer? Or can someone be a great developer even though he/she spell as a fifth grader?