Answer: a) law of effect
Explanation: Law of effect is the law that defines about the behavior is followed by consequences immediately that are in the favor in a repeated manner.The behavior that has unfavorable consequences as follower is expected to halt.
The situation mentioned in the question states about the law of effect in which joke made by Joseph is the behavior that is followed by the unpleasant consequence that he received no laughter from audience rather got a scolding.Thus, he decides to stop joking about such topics in the work place.
Other options are incorrect because habituation is not giving the response due to same stimulus exposure, classical conditioning is achieving response due to two stimuli and orienting is the alignment to specific position .Thus, the correct option is option (a).