Is it possible to hack the school system and steal the solutions for upcoming tests?

As
1

Our school has only Apple computers and they have such a program where they can just look from their laptops at what we do to our laptops. By the way, do not know me very well with hoes.

Au

Of course you can - the question is always how.

It is possible:

a bruteforce attack on the teacher account / fileserver
Social engeneering - eg pushing the teacher a Trojan
Exploit in unpatched software leading to privilege escalation or access to the Leher file server
Bad USB to subordinate the teacher PC to a Trojan
MITM in the network and so intercept the PW
SQLi- / XSS- against intranet website and see if there are login cookies or PW hashes to get
etc.

… But none of the actions is legal - just so marginally noticed!

And until you master all these techniques and some more, you probably have to learn 10x as much as for the one test ;-)