Portugal's Public Prosecutor's Office has launched a criminal inquiry into the digital grading of secondary school exams following union complaints over missing answer sheets and contradictory instructions.