I think you have to apply OPT, no CPT
When you file H-1B you have to request documents from school indicating that you are qualified for graduation. You just do not have the diploma yet.
For CPT you have to be a student. These two are controversial existing at the same time.