The teacher gave a B to the student for his excellent performance on the exam.
老师因为学生在考试中的出色表现给了他一个B的成绩。