-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.json
89 lines (89 loc) · 2.66 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"_id": "c-05",
"_parentId": "b-05",
"_type": "component",
"_component": "cmcq",
"_classes": "",
"_layout": "full",
"_attempts": 1,
"_shouldDisplayAttempts": false,
"_questionWeight": 1,
"_isRandom": false,
"_selectable": 1,
"_canShowModelAnswer": true,
"_canShowFeedback": true,
"_canShowMarking": true,
"_recordInteraction": true,
"_columns": 3,
"title": "CMCQ",
"displayTitle": "CMCQ",
"body": "Which of the following options is valid html?",
"instruction": "",
"_items": [
{
"title": "This is option 1.",
"_shouldBeSelected":false,
"code": {
"src": "p { color: red }\nbody {color:blue}",
"lang": "css"
},
"feedback": "No, this is CSS."
},
{
"title": "This is option 2.",
"_shouldBeSelected": true,
"code": {
"src": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<title>Narrative</title>\n</head>\n<body>\n<p>Hello world!</p>\n</body>\n</html>",
"lang": "html"
}
},
{
"title": "This is option 3.",
"_shouldBeSelected":false,
"code": {
"src": "using System;\nnamespace HelloWorld\n{\n class Hello\n {\n static void Main()\n {\n Console.WriteLine(\"Hello World!\");\n }\n }\n}",
"lang": "csharp"
},
"feedback": "No, this is C#."
}
],
"_feedback":{
"correct": "Cool. You nailed it.",
"_incorrect": {
"notFinal": "",
"final": "Unfortunately this is the incorrect feedback."
},
"_partlyCorrect": {
"notFinal": "",
"final": "This is the partly correct feedback."
}
},
"_comment": "You only need to include _buttons if you want to override the button labels that are set in course.json",
"_buttons": {
"_submit": {
"buttonText": "Submit",
"ariaLabel": "Select here to submit your answer."
},
"_reset": {
"buttonText": "Reset",
"ariaLabel": ""
},
"_showCorrectAnswer": {
"buttonText": "Correct Answer",
"ariaLabel": ""
},
"_hideCorrectAnswer": {
"buttonText": "My Answer",
"ariaLabel": ""
},
"_showFeedback": {
"buttonText": "Show feedback",
"ariaLabel": ""
},
"remainingAttemptsText": "attempts remaining",
"remainingAttemptText": "final attempt"
},
"_pageLevelProgress": {
"_isEnabled": true
}
}