Earlier quoted context omitted.
Yes, it worked for you - but surely in an adversarial context, there's absolutely no way to trust a previously untrusted device. In the extreme case, the entire interface might simply be a simulacrum app designed to feign success at locking.
I don't know how that would work since the teacher could reboot the device or hit/swipe home to exit the fake app. If the fake app was in guided access mode, they'd see a pin input instead of a home screen. The only way to fool the teacher would be to jailbreak the device. The 6s running iOS 9 is the most recent untethered jailbreak. All newer devices and iOS versions will revert back to stock kernel after reboot. Th…
Once Jailbroken, I don’t think you’d need a fake app. Just make a very simple patch that overrides whatever is preventing you from returning to the homescreen, and set up the patch to be enabled by a secret Activator action, like pressing the volume buttons in a secret sequence.