Here, f(x) is defined as roll number of student x.
Let f(x1) and f(x2) be the roll number of student x1 and x2 respectively.
Now, putting f(x1)=f(x2)
Since, no two students can have the same roll number.
f(x1)=f(x2)⇒ x1=x2
So, f(x) is one-one.
For onto,
f:P→N and since, there are only 45 students in the class.
So, f(x) can take the numbers from 1 to 45 only.
Thus, there is no pre-image of 46,47,...∈N.
So, it does not fulfill the condition for onto function.
Therefore, the function f is not bijective.