This is an example of
c. extrinsic motivation.
Explanation:
Extrinsic motivation is when something outside of our control influences our decision.
This is exemplified here in the case of Daniel.
Daniel may or may not be working hard to pass because he wants to pass but he is willing to do all that for the job he has because he is scared that he will be laid off.
The boss may lay him off from the job if he fails so he has to pass.
This is an example that is outside of the person's control.