This was a mock exam held by the government.
The dictionary website is private, but very well known.
As it's a mock exam, nobody will get into trouble for it. But, if nothing else, it should make the students think twice before trying to cheat on the next exam.