Background
Back when I was applying everywhere and anywhere for a Software Engineering job, I applied to a mutual fund investment company. They were very formal and uptight, from the overly detailed 13 page application that I've never seen anywhere else, all the way down to citing the calculations I made for travel reimbursement. During the interview process I talked to 4 different groups of people including the Senior Manager.
It felt like the Senior Manager was trying to find ways to trip me up. He gave a simple coding example and then chided me for trying to explain the details saying "I already know what it does". He reamed me out for not giving the correct definition of the word "refactor". Later, when I was trying to explain to him what I did for a school project, he said "Yes, but what is the value? Were you just coding around for no reason or was there a tangible benefit to this?" The thing is, I decribed to him that my team did field tests of the website and edited it according to feedback, which was rated from 1 to 5. The question itself just didn't seem relevant for an academically motivated, as opposed to financially motivated project.
For reference, I currently have a job, this is for people who encounter the same attitude of a manger as I did.
Question
How do I deal with an interviewer who is trying to trip me up?