Self Assessment - MCQ Instant Submit Example

JSON code for this quiz:

{
	"questions": [
	{
	    "questiontype":"mcq",
	    "question":"<p>Click to submit. NB This can't work for multiple answer - the option will only be available (activated) if there is only one correct answer for that question. Also, the 'reveal answer' help button doesn't make much sense here in not currently implemented (though could be added if really necessary).</p><p>This is currently implemented on a per question basis (as an attribute of each question's JSON settings). However, it might make more sense for it to be a single setting at the quiz level (in the root 'questions' node of the JSON file). A user would expect an entire quiz to behave in the same way so, currently, all questions need to have that attribute ( <span style=\"font-size: smaller; font-family:Consolas, 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', Monaco, 'Courier New', monospace\">\"instantsubmit\": \"true\"</span> ) added.</p><p><strong>Which of the following is a breed of dog?</strong></p>",
		"answers": {
		    "a":"Banana",
		    "b":"Jack Russell",
		    "c":"Spade",
		    "d":"Justin Bieber",
		    "e":"Carpet",
		    "f":"Volkswagen"
		},
		"correct":"b",
		 "feedback": {
                "d": "Blah"
            },
		"instantsubmit": "true"
	},
	{
	    "questiontype":"mcq",
	    "question":"<p>Two options make a true/false.</p><p><strong>The earth has a moon</strong></p>",
		"answers": {
		    "a":"True",
		    "b":"False"
		},
		"correct":"a",
		"instantsubmit": "true"
	},
	{
            "question": "<p><strong>Question 6</strong></p><p>A 12 month  old boy comes to the outpatient clinic with &lsquo;noisy breathing&rsquo;. The mother says  he has had low grade fever and a harsh cough for the past 3 days, but began  breathing fast this morning. On examination, there is a high pitched sound  heard best during inspiration and mild chest indrawing. The respiratory rate is  35 breaths per minute. </p><p>Which of  the following is the most appropriate treatment for this child?</p>",
            "answers": {
                "a": "Inhaled budesonide",
                "b": "Nebulised epinephrine",
				"c": "Nebulised salbutamol",
				"d": "Oral dexamethasone",
				"e": "Oral penicillin V"
            },
            "feedback": {
                "d": "<p>Correct.  Oral dexamethasone.  The condition described is croup; this is a viral condition. Antibiotics are not helpful. Salbutamol treats wheeze, not stridor. Budesonide inhaler is ineffective (but budesonide nebuliser may be useful). Epinephrine nebuliser may well be useful in a sicker child – this child is not that sick since the RR is not that high.</p>"
            },
            "correct": "d",
			"instantsubmit": "true"
        },
		 {
            "question": "<p><strong>Question 7</strong></p><p>A 12  month old girl has been vomiting since the age of one month. Her growth is at  the ninety-fifth percentile. She has no other symptoms and her examination is  normal. </p><p>The most likely diagnosis is:</p>",
            "answers": {
                "a": "Congenital hypertrophic pyloric stenosis",
                "b": "Gastroesophageal reflux disease",
                "c": "Hypothyroidism",
                "d": "Partial duodenal atresia",
                "e": "Tracheoesophageal fistula"
            },
            "feedback": {
                "b": "<p>Correct. <strong>Gastroesophageal  reflux disease. </strong> PS would present much earlier with a gaunt looking  baby that can keep nothing down. Growth would be affected in all other  pathological conditions listed here. The only one where the child would be  otherwise well is reflux.</p>"
            },
            "correct": "b",
			"instantsubmit": "true"
        }
	],
	"endPage": [
	{
	    "title":"<h4>Quiz complete</h4>",
		"textAllCorrect":"<p>Awesome! You've obviously mastered the subject.</p>",
		"textPass":"<p>Well done! You've passed this quiz.</p>",
		"failPercentage":75,
		"textFail":"<p>You didn't do so well and need to go back over the materials again.</p>",
		"showScore":true,
		"showRetry":true
		
	}
	]
}