If your school has an illness or misadventure form, you just gotta fill it in and give some evidence with the reason you had to miss school (like a signed note from your parent or a doctors certificate)
good luck in the exam whether you drop the subject or not!