Dominique,
This is very useful code, and feels very close to what I need - is there any way, on subsequent attempts, to let the trainee see the (personalised, deferred, tutor-generated) feedback for the quiz question, alongside the original question?
(How can I find out what classes are in questions? Is there a structure somewhere? I haven't programmed for a while, but I can read the code you've written and have a fiddle with it ...)
Thank you! You are doing such useful work here.