// Numbas version: exam_results_page_options {"name": "MCQ: all options randomised except 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"order": {"description": "", "group": "Ungrouped variables", "definition": "//the order in which to display the choices - pick a random permutation of [0,1,2,3,4]\n deal(5)", "templateType": "anything", "name": "order"}, "marks": {"description": "", "group": "Ungrouped variables", "definition": "//marks to award for each choice, then append the marks for \"none of the above\"\n map(choicemarks[j],j,order)+noneoftheabovemarks", "templateType": "anything", "name": "marks"}, "noneoftheabovemarks": {"description": "", "group": "Ungrouped variables", "definition": "//marks to award for selecting \"none of the above\"\n 1", "templateType": "anything", "name": "noneoftheabovemarks"}, "shuffledchoices": {"description": "", "group": "Ungrouped variables", "definition": "//the choice texts, in the shuffled order\n map(choices[j],j,order)", "templateType": "anything", "name": "shuffledchoices"}, "choicemarks": {"description": "", "group": "Ungrouped variables", "definition": "//marks to award for each of the above choices\n [1,0,0,0,0]", "templateType": "anything", "name": "choicemarks"}, "choices": {"description": "", "group": "Ungrouped variables", "definition": "//choices, apart from \"none of the above\"\n ['A','B','C','D','E']", "templateType": "anything", "name": "choices"}}, "showQuestionGroupNames": false, "functions": {}, "advice": "", "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "statement": "", "name": "MCQ: all options randomised except 1", "tags": ["demo"], "parts": [{"showCorrectAnswer": true, "shuffleChoices": false, "marks": 0, "matrix": "marks", "distractors": ["", "", "", "", "", ""], "type": "1_n_2", "maxMarks": 0, "displayColumns": 0, "displayType": "radiogroup", "scripts": {}, "choices": ["

{shuffledchoices[0]}

", "

{shuffledchoices[1]}

", "

{shuffledchoices[2]}

", "

{shuffledchoices[3]}

", "

{shuffledchoices[4]}

", "

None of the above

"], "minMarks": 0}], "rulesets": {}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["choices", "noneoftheabovemarks", "choicemarks", "marks", "shuffledchoices", "order"], "variable_groups": [], "question_groups": [{"pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [], "name": ""}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Using a shuffled list variable to randomise the order of all options in a multiple choice part except the last one.

", "notes": ""}, "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/"}]}