A sociologist studies how a teacher's attitudes toward particular students affect students' performance. Students of similar abilities who are "teacher's pets" perform at a high level, and students who are viewed as "troublemakers" perform poorly.
This illustrates which explanation of deviance?

A. anomie theory
B. labeling theory
C. cultural transmission
D. differential association