Being nonlinear, the device resistance is a function of the current - or the voltage (I am still an agnostic). And I am not talking of the differential resistance, but to full blown resistance computed as the ratio of the voltage across the diode and the current flowing through it. It all depends on how this student has been exposed to the concept in class: not all the world is alike.
If I understand this correctly, you would consider all two-terminal devices (or indeed anything physical that you could put a voltage across - a piece of wood?) as a resistor?
Well, if you burn it and turn the charcoal into a fine powder, add a little bit of binder (for example clay) and put a terminal here and there - that's a carbon resistor.
If so, that seems to generalise the word "resistor" to meaningless.
Has anyone here ever heard of the 'tetrahedron of state'? Of effort and flow variables? Of constitutive relations?
In circuit theory we have two main quantities: electric charge q and magnetic flux phi. Their time derivatives are current and voltage. These are two fundamental relations that come out of Maxwell's equations
i = dq/dt v = dphi/dt
(If you prefer seeing it the other way around, the time integrals of current and voltage are electric charge and magnetic flux.)
How many relationships can we find between these four variables (q, i, phi, v) ? Apart from the derivative and integral ones, we have four possibility
v vs i ---> resistance
v vs q ---> capacitance
phi vs i ---> inductance
phi vs q ---> memristance
A resistor (or, if you prefer, a generalized resistor) is a two terminal device whose constitutive relation is between the values of voltage and current.
An inductor's constitutive relation is between magnetic flux and current (or, if you prefer between voltage and the derivative of current)
A capacitor's constitutive relation is between voltage and charge (or, if you prefer, between voltage derivative and current)
A memristor's constitutive relation is between magnetic flux and electric charge (or, if you prefer, between the integral of voltage and the integral of current)
I hope you won't ask me now: "but a capacitor has voltage and current too, so why is not a capacitor a resistor as well"? Or, "what about a SQUID"?
The relationship between the variables is in general a nonlinear and time-variant one. In the case of the resistor it is also called 'generalized Ohm's law'. Some shorten it to just Ohm's law. In high school they only know about the 'ungeneralized' Ohm's law, the linear one, and they think that resistors can only be linear.