Blocking internet to prevent cheating is absurdly stupid as the cost to any nation's economy must be non trivial. Why can't they just take all the devices for students entering examination halls.
unless you are willing to body search every student (hundreds of thousands), you can't do that. as that would require hiring security personnel, because teachers won't agree to do it