Lists and sets

You can have answers with lists and sets. There are multiple forms understood as lists; you can configure it in Validation tab. Note the settings are different between General and Quantity modes.

  • Lists are allowed but elements need to be enclosed within curly brackets, by default.
  • Comma is used as a separator.
  • Compare as sets option is unchecked.

As an example,

We do not check the option Lists always need curly brackets

Student answer Validation
1,1,2,3,5
left curly bracket 1 comma 1 comma 2 comma 3 comma 5 right curly bracket
table row 1 row 1 row 2 row 3 row 5 end table blank
blank
1 space 1 space 2 space 3 space 5

LIVE DEMO

  • Lists are allowed but the option is not checked by default.
  • Comma is used as separator.
  • Compare as sets option is unchecked.

As an example,

We select both comma and space as separators

Student answer Validation
5 text mm end text comma 3 text cm end text comma 1 text m end text comma 2 text Hm end text comma 4 text Km end text
left curly bracket 5 text mm end text comma 3 text cm end text comma 1 text m end text comma 2 text Hm end text comma 4 text Km end text right curly bracket
5 text mm end text space 3 text cm end text space 1 text m end text space 2 text Hm end text space 4 text Km end text
table row cell 5 text mm end text end cell row cell 3 text cm end text end cell row cell 1 text m end text end cell row cell 2 text Hm end text end cell row cell 4 text Km end text end cell end table blank
blank

By default, to be OK, lists in student and correct answers must have equivalent items and in the same order. That is, order is important, and repetition has sense. In contrast, sets are lists without order nor duplicated items. Thus, you can set the lists to be understood as Sets. That is, ignore repetition and order in the comparison.

As an example,

Student answer Validation
left curly bracket 1 comma 2 comma 2 right curly bracket
1 comma 2 comma 2
1 comma 2
1 comma 2 comma 2 comma 2 comma 1
1 space 2 space 2

LIVE DEMO