cocksure (adj.) Look up cocksure at Dictionary.com
1520s, "certain," from cock (n.1) + sure (adj.). Probably "as assured as a cock." "The word was originally perfectly dignified, and habitually used in the most solemn connexions" [OED].