Hello,
You can try making connections with each one of them to remember them.
You can also try writing them multiple times because your hand has a memory and you would most likely remember them.
After you memorize them try writing them multiple times without looking like just test yourself.
Don’t stress out in the exam. Just breathe and take your time.
Hope this helps!
Good luck