What is Kneejerk?
To react without thinking. To form an opinion without paying attention.
When he said he was a Republican, the college student's kneejerk reaction was to boo him.