So, this is a little bit odd but an interaction that happened today has made me feel really weird and bad.

So, i'm a junior Computer science student and I started classes last week. When I'm in class I like to interact, ask question, and sometimes make a joke because I find it helps the best with me learning. I find that i'm usually one of about 3 students in a class to ever interact and i've always thought it was ok.   
Well, that was until I started a computer networks class this semester. No one in the class of 40 but me ever asks questions or speaks up regularly. So I found that every class i'm the only one asking questions or responding to the teacher. All the questions I ask are on topic but sometimes are there just to clarify or ask something related but that might not be covered. 

I've always thought this was fine until today, When I got out of class one of my friends came and told me he overheard some of the other students calling me annoying and "A ass kisser". I decided to go and talk to one of the people who said this and he told me that apparently others find the fact that I always ask the teacher questions or respond to him annoying and that they find my jokes "moronic". He told me that i'm making a fool of myself and that the teacher probably doesn't appreciate that I ask questions that won't be covered on the tests and that I look stupid ever time I ask for a clarification. 

This honestly is tearing me up right now. I thought I was being nice by trying to interact in class but apparently others think i'm an ass because of it. I would like some outside perspective on this. Am I making an ass out of myself by doing this?