// Numbas version: finer_feedback_settings {"name": "Multiple choice: shuffle only some of the choices", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Multiple choice: shuffle only some of the choices", "tags": [], "metadata": {"description": "
A demonstration of how to use the \"variable list of choices\" option for a \"choose one from a list\" part to shuffle only some of the choices, and always have the same \"I don't know\" choice at the end of the list.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "variables": {"choice1": {"name": "choice1", "group": "Ungrouped variables", "definition": "\"Correct choice
\"", "description": "", "templateType": "long string"}, "choice2": {"name": "choice2", "group": "Ungrouped variables", "definition": "\"Incorrect choice 1
\"", "description": "", "templateType": "long string"}, "dontknow": {"name": "dontknow", "group": "Ungrouped variables", "definition": "\"I don\\'t know
\"", "description": "A fixed \"I don't know\" choice which always appears at the end of the list.
", "templateType": "long string"}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "map(unshuffled_choices[j],j,order)+[dontknow]", "description": "The choices to display to the student - the shuffled choices, and then \"don't know\".
", "templateType": "anything"}, "choice3": {"name": "choice3", "group": "Ungrouped variables", "definition": "\"Incorrect choice 2
\"", "description": "", "templateType": "long string"}, "marks": {"name": "marks", "group": "Ungrouped variables", "definition": "map(unshuffled_marks[j],j,order)+[0]", "description": "The marks for the choices, as shown: the shuffled choices, and then 0 for \"don't know\"
", "templateType": "anything"}, "order": {"name": "order", "group": "Ungrouped variables", "definition": "deal(len(unshuffled_choices))", "description": "The order in which to show the shuffled choices - a random permutation.
", "templateType": "anything"}, "unshuffled_choices": {"name": "unshuffled_choices", "group": "Ungrouped variables", "definition": "[choice1,choice2,choice3]", "description": "The choices which should be shuffled.
", "templateType": "anything"}, "unshuffled_marks": {"name": "unshuffled_marks", "group": "Ungrouped variables", "definition": "[1,0,0]", "description": "Marks to award for each of the choices to be shuffled.
", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["choice1", "choice2", "choice3", "dontknow", "unshuffled_choices", "unshuffled_marks", "order", "choices", "marks"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": "choices", "matrix": "marks"}], "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/"}]}