True, but for calculators, they can just clear the flash memory at the beginning (that's what they do for many big tests), and they restrict calculator models to only those that don't have wireless communication capabilities (calculators connected by cables may look a bit too obvious...).

You can't really format everyone's harddrives prior to a test, even if you can take care of the array of wireless communication capabilities in modern laptops.