That's quite a strong word to use in that context. I'd expect people who screw up exams to use some expression like 'screwed up'. 'I really screwed up my answer to no. 1' - no preposition. And if they made a mess of the whole exam... - 'made a mess/hash/botch of'.
Student or Learner