This situation represents the cognitive component of attitude.
Cognitive component attitude refers to the knowledge, beliefs, and thoughts. Our attitude refers to the evaluation of some object, situation, or a person, attitudes are generally positive or negative. The cognitive component of attitude refers to the thoughts and beliefs one has about the attitude object.