The standard view of this forum does not always work well with assistive technology. We also provide a simpler view, which still contains all features. Switch to simple view.

Albert Gomez Post 1

26 July 2016, 6:08 AM

Possible list bug

Dear Moodle team,

On trying to prepare quizzes on conversion from modern to Roman numerals, I found the following issue:

The programming (as done on a Maxima worksheet) seems quite simple: 

Let L be a list of Roman numerals up to, say, 20.

L:[I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XVIII, XIX, XX]

and let the required answer a be a random number n (from 1 to 20) converted to Roman numerals. That is,

n:random(20)+1
a:L[n]

This arrangement works beautifully in Maxima, however, it works partially in a STACK moodle question. That is, writing

L:[I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XVIII, XIX, XX]
n:rand(20)+1
a:L[n]

gives the right answer for some numbers but not for others (for example, VI, IX, or XX will be accepted correct answers for 6, 9, or 20, but numbers like XVI or XVII will be rejected as invalid answers for 16 or 17).

Will you please tell me what I'm doing wrong, or what, if anything, is wrong, and whether it can be solved somehow.

Yours, 

Al

Tim Hunt Post 2 (summarised) in reply to 1

3 August 2016, 12:26 PM Edited by the author on 3 August 2016, 12:26 PM
Questions about STACK are best asked in the Moodle Maths tools forum:...
 [Expand all posts]