In this scenario, the student's response can be classified as:
B. a defense mechanism - Specifically, it appears that the student is rationalizing or minimizing the impact of being picked on by interpreting the negative behavior of others as a form of affection or liking. This is a way of protecting himself from the negative feelings associated with bullying.
While it could also be argued that this might relate to:
A. a coping strategy - If the student is consciously using this perspective as a way to cope with the situation, it might be seen that way as well.
However, the strongest fit here is B. a defense mechanism.