There were several alternate answers to 'I was taking an exam this morning' and they all used the word 'un exam' But in the full text presented at the end, it became 'un examen'. I have noticed this sort of disagreement every once in a while.
Thanks, Jack
PS. The writing exercises are extremely helpful !