Display Multiple-Select Choices in a Fixed Order

By default, the answer choices for multiple-select questions are listed in random order.

You can force the choices to be displayed in a specific order by setting the $ORDERED variable to indicate the numbers of the correct choices and entering the answer choices in the sequence in which they should be displayed. You do not use the <INCORRECT> tag when displaying multiple-select choices using this method.

To list answer choices in a specific sequence:

  1. Start the first line of Answer with the following code:
    <eqn $ORDERED=[n,o,p]; ''>

    where n, o, and p are the numbers of the correct choices. The choices are numbered beginning with 1 for the choice on the first line of Answer.

    You can specify any number of choices. For example, <eqn $ORDERED=[1,4]; ''> indicates that choices 1 and 4 are correct.

    Tip: You can specify the range of correct choices from n through p as [n..p]. For example, <eqn $ORDERED=[1..3]; ''> indicates that choices 1, 2, and 3 are correct.
    Note: If you use the $ORDERED and $SET_EACH_POSITION variables together, you must specify $ORDERED first, and then $SET_EACH_POSITION.
  2. Type the choices in Answer in the sequence in which they should be displayed.

Example Ordered Multiple-Select Question

The following table summarizes an actual question.

QID

1158784

Name

Template2 2.MS.02.

Mode

Multiple-Select

Question

Which of the following are rational numbers? (<p:selectall>)<br>
<_>

Answer

<eqn $ORDERED=[1,2,3,4]; ''>-321
0
2/3
321
None of these

Display to Students

Question as displayed to students