If a different class of functions doesn't exist, it seems like your classmates just had better study material.
(I'm thinking about a calculus test with a previously unseen e^x. Wouldn't knowing the answer from looking at a previous year's test be more akin to 'learning' than 'cheating'?)
Sometimes, it can work against the student. Particularly if the student doesn't attend class (low-level blow off class) and the teachers / method changes. I TAed an intro to programming course for non-majors. My fellow TA and myself created new tests for the class (it went from GWBasic to QBasic). A couple of students from one of the fraternities attended the 1st day of class and then the first test (missing the homework programs). I handed out the first test and got the following reaction: "This isn't the right test!". Oh well.