Short answer: told = commanded; asked = requested.
The "insolent" student was supposed to follow directions, so the verb should have been "told".
Using "asked" is slightly sarcastic in this context (as if the student were above being told what to do), but that's a subtlety in advanced English. At this simpler level of English, don't use it. You know not what forces you may unleash.