A new study suggests that children doing well in classrooms are more popular and emotionally secure than their peers who are having trouble academically.