Wise guy
noun
One who is insolent or flippant; one who makes jokes or perpetrates pranks.
“Her reputation for being a wise guy made her new teachers hesitant about having her in their classes.”
A knowledgable or successful sports bettor.
A member of the Mafia; a mobster.
Synonyms: know-all, know-it-all, smart aleck, smarty, wisecracker, wisenheimer