// Numbas version: finer_feedback_settings {"name": "Custom marking script for \"choose one from a list\"", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Custom marking script for \"choose one from a list\"", "tags": [], "metadata": {"description": "
Do not use this: JME marking algorithms are the best way to change marking behaviour now, instead of JavaScript.
\nA very simple example of a custom marking script for a \"choose one from a list\" part
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {"mark": {"script": "// the validation script requires these properties to be set\nthis.validation = {\n wrongNumber: false,\n numTicks: 1\n}\n\n// work out which option was ticked\nvar answer;\nfor(var i=0;iYes
", "No
"], "matrix": ["1", 0], "distractors": ["", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}