[Data Model] Fill in the Blanks Questions
body
<div class='question-body'>
<div class='ftb-title'>
<p>Capital of india is [[New Delhi]], and capital of USA is [[New York]]</p>
</div>
<div data-text-interaction='response1' class='ftb'></div>
</div>
responseDeclaration
Format1 (Recommended) | Format2 | Format3 |
---|---|---|
"responseDeclaration": {
"response1": {
"cardinality": "multiple",
"type": "string",
"correctResponse": {
"value": [
"New Delhi",
"New York"
]
},
"mapping": [
{
"value": "New Delhi",
"score": 0.5
},
{
"value": "New York",
"score": 0.5
}
]
}
} | "responseDeclaration": {
"response1": {
"cardinality": "multiple",
"type": "string",
"correctResponse": {
"value": [
"0",
"1"
]
},
"mapping": [
{
"value": 0,
"score": 0.5
},
{
"value": 1,
"score": 0.5
}
]
}
} | "responseDeclaration": {
"response1": {
"cardinality": "single",
"type": "string",
"correctResponse": {
"value": "0"
},
"mapping": [
{
"value": "0",
"score": 0.5
}
]
},
"response2": {
"cardinality": "single",
"type": "string",
"correctResponse": {
"value": "1"
},
"mapping": [
{
"value": "1",
"score": 0.5
}
]
}
} |
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
"outcomeDeclaration": {
"maxScore": {
"cardinality": "single/multiple",
"type": "integer",
"defaultValue": 1
}
}
interactions
format1 (recommened) | format2 | format3 |
---|---|---|
No need to store interaction
As this is textfill no
options to select from so saving
interactions is not needed | "interactions": {
"response1": {
"type": "text",
"options": [{
"label": "New Delhi",
"value": 0
},
{
"label": "New York",
"value": 1
}
]
},
"validation": {
"required": "Yes"
}
} | "interactions": {
"response1": {
"type": "text",
"options": [
{
"label": "New Delhi",
"value": 0
}
]
},
"response2": {
"type": "text",
"options": [
{
"label": "New York",
"value": 1
}
]
},
"validation": {
"required": "Yes"
}
|
|
|
|
editorState
"editorState": {
"options": [
{
"answer": true,
"value": {
"body": "New Delhi",
"value": 0
}
},
{
"answer": true,
"value": {
"body": "New York",
"value": 1
}
}
],
"question": "<p>capital of india is [[New Delhi]]. and capital of USA is [[New York]]</p>"
}
answer
<div class='answer-container'>
<div class='answer-body'>
<p>New Delhi</p>
</div>
<div class='answer-body'>
<p>New York</p>
</div>
</div>
templateId
templateId: "default"
primaryCategory
"primaryCategory": "Fill In The Blanks Question"
qType
"qType": "FTB"
, multiple selections available,
Related content
[Data Model] Match The Following Question
[Data Model] Match The Following Question
More like this
[Data Model] Arrange Sequence Questions
[Data Model] Arrange Sequence Questions
More like this
FTB Data Model Design
FTB Data Model Design
More like this
[Design] Fill in The Blank - Editor & Player
[Design] Fill in The Blank - Editor & Player
Read with this
Survey and Observation - New Question Types
Survey and Observation - New Question Types
More like this
Static data - JSON format
Static data - JSON format
More like this