When one of the following is a compound sentence ?

Answer: 
He worked hard yet he could not succeed in the examination .
When one of the following is a compound sentence ?