Secret agent student
This may seem like a far-fetched hack, but don’t worry, there are ways to make it work. If the teacher allows a page to work out problems or write a draft on, you can conceal information as if you had an invisible ink.

Don’t worry; you won’t be needing ultra-violet light to look at invisible ink. That would overexpose you, and you would most probably be caught. One thing you can do is write the answers hard, pressing your pen to the paper, and the page underneath will have the answers carved onto it. It would look like it’s blank, but turn it, and you will see the answers.