A warning has been sounded on potential AI-based cheating as tens of thousands of high school students sit down to take final exams.