Probably from earlier university slang influenced by Greek sophos, wise, and moros, foolish, giving the playful idea of someone partly wise and partly foolish. The word has been used in American education for second-year students since the seventeenth century.