Green’s Dictionary of Slang

smart-aleck adj.

also smart-alec, smart-alecky, smart Alex, smart-Ellicky, wise-alecky
[smart aleck n.]

1. [20C+] cocky, conceited, smug.

2. [2000s] in ext. use, of objects.