Aleck is a nickname for the male given nameAlexander. The phrase "smart aleck" is possibly derived from the name of Aleck Hoag, a 19th-century Americancon man and thief.
smartaleck (pluralsmart alecks)