['I did worse on an exam than I expected to.', 'Oh no! Were you prepared?', 'Yes, I studied so hard that I even felt prepared for the exam.']
I bet you will make it up next time.
I studied really hard for an exam and felt prepared for it when it was time to take it. When I got the exam back I did worse that I expected to.