Not to mention that this was posted and answered online, and it's possible that one or more of the students might have actually seen the question beforehand and memorized it. Some people have eidetic memories.
I have no respect for cheaters, but catching innocents in this little trap is absolutely unconscionable to me.