Answer: the fallacy committed here is
Post hoc, ergo propter hoc (latin: After this , therefore because of this)
Explanation: the fallacy states that since event B happened after event A had happened therefore event B was caused event A. So here I thought the reason I got an A in an exam was because of the 30mins cardio exercise I carried out. Which is a fallacy.