Student or Learner
I was preparing for an exam in 2010 and this/that subject was boring.
I am preparing for an exam and this/that subject is boring.
I am not able to determine which one to use.
I'd just use 'the' in both sentences. You need a reason to use 'this' or 'that',