Appearance
Exercises
All exercises share the following common attributes:
| Attribute | Default | Description |
|---|---|---|
| isDisabled | - | Prevents the user from changing the exercise answer |
Plain text
javascript
{
exercise: {
question: 'Question 1',
answerType: 'PLAIN_TEXT',
},
userAnswer: 'User answer'
}Single choice
javascript
{
exercise: {
question: 'Question 1',
answerType: 'SINGLE_CHOICE',
answerOptions: ['Option 1', 'Option 2']
},
userAnswer: 'Option 2',
}True / False
javascript
{
exercise: {
question: 'Question 1',
answerType: 'TRUE_FALSE',
},
userAnswer: 'True' // Or 'False'
}Sorting
javascript
{
exercise: {
question: 'Question 1',
answerType: 'SORTING',
},
userAnswer: ['Element 2', 'Element 3', 'Element 1']
}Linked concepts
javascript
{
exercise: {
question: 'Question 1',
answerType: 'LINKED_CONCEPTS',
},
userAnswer: [
{ leftConcept: 'Concept A', rightConcept: 'Concept 2'},
{ leftConcept: 'Concept B', rightConcept: 'Concept 3'},
{ leftConcept: 'Concept C', rightConcept: 'Concept 1'},
]
}Fill the gaps
javascript
{
exercise: {
question: 'Question <GAP> 1 <GAP>',
answerType: 'FILL_GAPS',
},
userAnswer: ['User answer gap 1', 'User answer gap 2']
}