Comment Re:Exam, not a job (Score 4, Insightful) 177
Broadly speaking, yes, the point of an exam is to test the examinee's knowledge. However, that is a very vague and imprecise statement. In principle each exam item is meant to assess a specific piece of knowledge. For example, the example of finding leap years is likely intended to get students to demonstrate an ability to iterate using a for loop with a nested conditional. One could simply tell the examinee that this is the intention, but then you are essentially telling them how to answer the question, which reduces the validity of the assessment (to what extent is, of course, a matter of debate). At the end of the day, the exam writer needs to know if an examinee can actually recognize a situation which calls for iteration, and whether or not they actually code up a valid for loop.
On the other hand, if a student comes up with a valid though unexpected solution, the fault is with the writers of the exam item, and not the examinee. The correct course of action in such a case is probably to give the examinee credit for their correct answer, or to remove the exam item from the computation of scores for all examinees. Hopefully, the knowledge which the invalid exam item was meant to assess is tested elsewhere—one or two problematic exam items should not seriously threaten the overall validity of an exam which is made up of many questions.