numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
202 stars 117 forks source link

Override the value of some question variables in the exam's question list #819

Closed christianp closed 3 years ago

christianp commented 3 years ago

This would be really convenient when setting up a diagnostic exam, but this idea has come up before: having reusable template questions that you can easily modify.

I have a question format, "match the English word for this number with its numeral". I'd like to make sure that the student is asked about each of the digits 1 to 9. So "this number" can't be a random variable, but I don't want to have to set up 9 basically identical questions, one for each digit. Even if I do take the time to set them up, if I need to make a change, I'll have to do each one individually.

So the question list in the exam editor could have some means of specifying values for question variables, for each question in the list. Then I'd add nine copies of my template question, and set the variable digit to a different value for each one.

Maybe question variables could be marked as "templatey", so they appear in the exam editor. The variable's description could be shown next to the input box, to give some guidance on what value it should take.