smart remark
It's when someone thinks they're top shit, only to let their ego decide what comes out of their mouth.
Teacher: Why aren't you getting this down, I'm writing this on the board for a reason.
Student: My laptop ran out of battery.
Teacher: There are some people in this world you just can't help.
Student: You could have just told me nicely, no need for the smart remark.