// Numbas version: finer_feedback_settings {"name": "Multiple Choice Shortened Match Template", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Multiple Choice Shortened Match Template", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "
You can change this variable to determine which of the lists you randomise and shrink. Non selected lists will just stay at their full size
", "templateType": "anything", "can_override": false}, "final_pool": {"name": "final_pool", "group": "Behind the Scenes", "definition": "groups_of(pool, number_of_items_to_generate)[0] + repeat(1000, len(pool)-number_of_items_to_generate)", "description": "", "templateType": "anything", "can_override": false}, "final_choice_list": {"name": "final_choice_list", "group": "Output", "definition": "if(which_to_shorten=\"Both\" or which_to_shorten=\"Choice\", groups_of(map(y, [x,y], sorted_choice), number_of_items_to_generate)[0], map(y, [x,y], sorted_choice))", "description": "", "templateType": "anything", "can_override": false}, "keys_choice": {"name": "keys_choice", "group": "Behind the Scenes", "definition": "zip(pool, choice_list)", "description": "", "templateType": "anything", "can_override": false}, "keys_answer": {"name": "keys_answer", "group": "Behind the Scenes", "definition": "zip(pool, answer_list)", "description": "", "templateType": "anything", "can_override": false}, "sorted_choice": {"name": "sorted_choice", "group": "Behind the Scenes", "definition": "sort_by(0,keys_choice)", "description": "", "templateType": "anything", "can_override": false}, "sorted_answer": {"name": "sorted_answer", "group": "Behind the Scenes", "definition": "sort_by(0,keys_answer)", "description": "", "templateType": "anything", "can_override": false}, "final_answer_list": {"name": "final_answer_list", "group": "Output", "definition": "if(which_to_shorten=\"Both\" or which_to_shorten=\"Answer\", groups_of(map(y, [x,y], sorted_answer), number_of_items_to_generate)[0], map(y, [x,y], sorted_answer))", "description": "", "templateType": "anything", "can_override": true}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Options", "variables": ["Choice_List", "Answer_List", "Which_To_Shorten", "Number_Of_Items_To_generate"]}, {"name": "Behind the Scenes", "variables": ["pool", "number_of_items_to_generate_corrected", "final_pool", "keys_choice", "keys_answer", "sorted_choice", "sorted_answer"]}, {"name": "Output", "variables": ["final_answer_list", "final_choice_list"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "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, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": [], "matrix": [], "layout": {"type": "all", "expression": ""}, "answers": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "James Absolom", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/30582/"}], "resources": []}]}], "contributors": [{"name": "James Absolom", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/30582/"}]}