Smartass

Smartass 

Defined as someone whose sarcastic, wisecracking, or humorous manner is delivered in an offensive, obnoxious, or cocky way. It can also be used in an offensive way, for example "What are you, a smartass?"