Answer:
Fundamental attribution error
Step-by-step explanation:
This happens when an individual explains a persons action according to internal factors such as the character and will power the person and underdress the impact external factors have on the individual.
In the example above the professor believes because Nadiya is struggling with attending classes means when she’s caught it will be certainly for cheating. This is an error as it may be due to other factors.