['So disappointed in myself for getting a low mark.', "Oh, no.  I'm sorry.  Was it due to a test?", "It was a math test, I had studied quite hard so I'm stumped right now."]
Math is not my favorite.  Can you ask the teacher/professor?
I got a bad mark back on my math test. I had studied hard.