The definition of cocky is someone who is overly self-confident.(adjective)
Someone who is very arrogant and assumes they know all the answers is an example of cocky.
See cocky in Webster's New World College Dictionary
See cocky in American Heritage Dictionary 4
adjective cock·i·er, cock·i·est
Learn more about cocky