First off, I'm guessing that your situation is you are an undergrad and this is the professor whom you do the majority of your work with. So you are stuck with this person for another year or two AND they give you a grade as well. Correct? If that's the case you need to be careful and suck it up and do the job. If they don't like you, find a way to make them like you. See the list at the bottom of this thread and change any of these potential danger areas about yourself. Grow in your skills, ask good questions, impress the person with your work, and respect his/her position as your Jedi Master.
I too agree that there is a good chance this was simply a matter of trying to make the other person happy so that he/she would go away (I'll say anything to get a former student I can't stand to leave

). The best response would have been for you to wait for the other person to leave and then RESPECTFULLY ask the question, "
I am confused about what you just said.
I must have misunderstood something in lecture about
DMX vs.
XLR. Can you explain it to
me?" Humble, and assuming you made the mistake and not the prof. Ask about the content not the intent behind what was said. It would have been best if you asked it right away but you could still come back and say, "Hey I was thinking about what you said last week and
I'm still a little confused, can you help me?" Don't be confrontational, be submissive and respectful to your Jedi Master and you will be rewarded Padawan (and I'm not really joking with that analogy).
I find it really hard to believe that the faculty person would throw you under the bus in front of someone else just for his/her own jollies. That just doesn't make sense. You are a student and I am your teacher. If I don't like you, you definitely aren't important enough in my world that I somehow need your approval or your suffering to make my day any better. It just doesn't work like that. If I didn't like you I would do my best to find ways to get you to work with someone else or work on your own. Shaming you in front of another student by answering something incorrectly myself, just doesn't make sense to me.
NOTE: Karim I'm not saying any of what follows is true about YOU personally, I don't know you. What I am doing is trying to be really honest and give you (and the other students reading) a view into the typical T.D./Prof mindset. ON the other
hand if you identify with any of the issues below, make it your number one priority to fix them now or change careers. Because someone who does these behaviors will rapidly find it very difficult to find work in this industry as word travels fast. Us grumpy old T.D.'s are all pretty much all cut from the same
bolt of cloth. We don't necessarily like the smartest students or the students from the "best high school program". We like a hard working, responsible student, with a proven
track record, and a team attitude, who knows when to shut up and when to interrupt with a good question. We like a student who treats everyone with respect, who is willing to listen, grow, and be molded into the kind of tech WE want to make of you. If you say yes to all those things, I can pretty much guarantee your prof likes you. If a college prof truly doesn't like a student I pretty much guarantee it's because of one of the following four issues:
a) You are a know it all who drives people crazy with your attitude. This is a VERY serious problem. Stop talking and start listening. Be humble and respectful. You are going to destroy yourself before you even apply for your first job. Once word of your attitude gets out, no one in town will hire you and word travels fast.
b) You are lazy and don't care about the quality of your work. If I have to spend all my time fixing your work you are of no use to me.
c) You can't be counted on to show up on time and finish the job. If you can't show up on time, don't bother showing up at all.
d) You've got some weird personality quirk that drives people crazy and slowly destroys crews. I had this one student who spent all his time making up lies about how awesome he was. These kinds of people can be really divisive to crews. Be part of the team and deal with your personality issues.