Language functions are the ways we use language to communicate. We use language for a number of formal and informal reasons. Specific grammatical structures and vocabulary are also used with each language function. In the given context, the teacher replies politely to the student by addressing her as “ma’am” and “please.” Thus, the teacher applies proper language function to communicate effectively with the student.