Answer:
Yes, it's an example of a function.
Step-by-step explanation:
In order to answer the question, you have to know the definition of Function.
A function is a relation between sets that assigns to every element of the input set exactly one element of the output set.
Therefore, if you have a relation that assigns each student to a grade level then you can consider it a function because each student (input set) is assigned to a grade level (output set).
Every student is in a grade level, therefore the relation assigns to every student exactly one element of the output set (one grade level)