Submission + - SPAM: Dealing with Unexpected-But-Correct Approaches to Coding Test Questions?
theodp writes: One of the challenges with quizzing students or job candidates on coding is that the questionee may come up with a completely different approach than the questioner wanted to see taken (not that there's anything wrong with that!). For example, take the first of the Free Response Questions in this year's AP CS A exam, which asked 70,000 college-bound students to "Write the static method numberOfLeapYears, which returns the number of leap years between year1 and year2." The correct answer, according to the CollegeBoard's 2019 Scoring Guidelines, entails iterating over the range of years and invoking a provided helper method called isLeapYear for each year. Which does work, of course, but what if a student instead took an Excel-like approach to the same problem that consists of a (hopefully correct!) single formula with no iteration or isLeapYear helper function? Would that be a worse — or better — example of computational thinking than the endorsed AP CS A Java-based solution (7-minute AP Conference discussion of how to correctly grade this problem)? So, how have you seen schools and companies deal with unexpected-but-correct approaches to coding test questions?