I did the same thing. It was allowed in general, with the correct thought, “if you can code it yourself, you know the content”
I had another “program” that would fail to run but that’s because I wrote notes into it. Doubt that was allowed.
Oh god I remember doing that too. Those “programs” were the best. I even mad sure to make the code long, so that even if someone thought to take a look at the code they would have to scroll for a while to find the notes.
Here in NZ they do a factory reset on your calculator at the start of every exam.
They did that here too, but students would use a cheat program that made it look like teachers were resetting it, but really the memory was safe
I don’t remember if they fully closed the loopholes, but there are inputs that programs cannot catch unless you actually replace the OS.
My memory is pretty hazy but the cheat application emulated the process that teachers used to do a system reset.
Iirc, it let you press menu, select reset, confirm, and showed the (fake) confirmation screen.
Also IIRC, you had to install it from Mirage OS, which I don’t think was an OS (?) but rather an app that everyone had to play games from.
Oh I would have been so pissed. I was programming on my calculator 24/7 instead of my classes.
I wrote a sudoku “editor”
I put that in quotes because I had a grid that could be navigated, arrows moved, storing the numbers, had number entry down. And when it was time to implement the solver, I learned the hard way what p vs np is.
I did that but made it return success before it got to the notes. You had to scroll to get to the notes, but it looked innocuous before that.