body

1<div class='question-body'> 2 <div class='ftb-title'> 3 <p>Capital of india is [[New Delhi]], and capital of USA is [[New York]]</p> 4 </div> 5 <div data-text-interaction='response1' class='ftb'></div> 6</div>

responseDeclaration

Format1 (Recommended)

Format2

Format3

1"responseDeclaration": { 2 "response1": { 3 "cardinality": "multiple", 4 "type": "string", 5 "correctResponse": { 6 "value": [ 7 "New Delhi", 8 "New York" 9 ] 10 }, 11 "mapping": [ 12 { 13 "value": "New Delhi", 14 "score": 0.5 15 }, 16 { 17 "value": "New York", 18 "score": 0.5 19 } 20 ] 21 } 22}
1"responseDeclaration": { 2 "response1": { 3 "cardinality": "multiple", 4 "type": "string", 5 "correctResponse": { 6 "value": [ 7 "0", 8 "1" 9 ] 10 }, 11 "mapping": [ 12 { 13 "value": 0, 14 "score": 0.5 15 }, 16 { 17 "value": 1, 18 "score": 0.5 19 } 20 ] 21 } 22}
1"responseDeclaration": { 2 "response1": { 3 "cardinality": "single", 4 "type": "string", 5 "correctResponse": { 6 "value": "0" 7 }, 8 "mapping": [ 9 { 10 "value": "0", 11 "score": 0.5 12 } 13 ] 14 }, 15 "response2": { 16 "cardinality": "single", 17 "type": "string", 18 "correctResponse": { 19 "value": "1" 20 }, 21 "mapping": [ 22 { 23 "value": "1", 24 "score": 0.5 25 } 26 ] 27 } 28}

Note: when there are two or more blanks in the question then cardinality will be multiple. If there is only one blank in the question the cardinality will be single.

outcomeDeclaration

1"outcomeDeclaration": { 2 "maxScore": { 3 "cardinality": "single/multiple", 4 "type": "integer", 5 "defaultValue": 1 6 } 7 }

interactions

format1 (recommened)

format2

format3

1No need to store interaction 2As this is textfill no 3options to select from so saving 4interactions is not needed
1"interactions": { 2 "response1": { 3 "type": "text", 4 "options": [{ 5 "label": "New Delhi", 6 "value": 0 7 }, 8 { 9 "label": "New York", 10 "value": 1 11 } 12 ] 13 }, 14 "validation": { 15 "required": "Yes" 16 } 17}
1"interactions": { 2 "response1": { 3 "type": "text", 4 "options": [ 5 { 6 "label": "New Delhi", 7 "value": 0 8 } 9 ] 10 }, 11 "response2": { 12 "type": "text", 13 "options": [ 14 { 15 "label": "New York", 16 "value": 1 17 } 18 ] 19 }, 20 "validation": { 21 "required": "Yes" 22 } 23




editorState

1"editorState": { 2 "options": [ 3 { 4 "answer": true, 5 "value": { 6 "body": "New Delhi", 7 "value": 0 8 } 9 }, 10 { 11 "answer": true, 12 "value": { 13 "body": "New York", 14 "value": 1 15 } 16 } 17 ], 18 "question": "<p>capital of india is [[New Delhi]]. and capital of USA is [[New York]]</p>" 19 }

answer

1<div class='answer-container'> 2 <div class='answer-body'> 3 <p>New Delhi</p> 4 </div> 5 <div class='answer-body'> 6 <p>New York</p> 7 </div> 8</div>

templateId

1templateId: "default"

primaryCategory

1"primaryCategory": "Fill In The Blanks Question"

qType

1"qType": "FTB"