know-it-all vs wiseacre

know-it-all

noun
  • Someone who claims to be knowledgeable or an expert in something, obnoxiously dismissing the opinions, advice, suggestions, etc. of others. 

wiseacre

noun
  • One who feigns knowledge or cleverness; one who is wisecracking; an insolent upstart. 

verb
  • To act like a wiseacre; to wisecrack. 

How often have the words know-it-all and wiseacre occurred in a corpus of books? (source: Google Ngram Viewer )