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
197 stars 118 forks source link

It's annoying that a question's maximum score can't be determined without running it #1070

Open christianp opened 6 months ago

christianp commented 6 months ago

The maximum score available for any of the multiple choice part types is determined by looking at the marking matrix.

In real use, the maximum score should be the same for every student, so it should be possible to determine it from the question definition, without generating an instance of the question.

Fairly often, a multiple choice part has the "marks" field for each choice filled in with an expression like award(1, scenario=N). It's not straightforward to read the maximum possible value out of these expressions.

There is a maxMarks property of the m_n_2 and m_n_x part types which is unset by default. We could insist on this being set, but that would break a lot of existing questions.

I can't see a way of resolving this. It might just be a design mistake that we have to live with.