We use an airgapped lab (it has LAN and a local git server for submissions, no WAN) to give coding assessments. It works.