// Numbas version: finer_feedback_settings {"name": "Tick every occurrence of the lowest number in a list", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"type": "question", "variables": {"num_minimum": {"name": "num_minimum", "group": "Ungrouped variables", "templateType": "anything", "definition": "len(filter(x=min(ns),x,ns))", "description": "
How many times does the minimum appear in the list?
"}, "available_marks": {"name": "available_marks", "group": "Ungrouped variables", "templateType": "anything", "definition": "len(ns)", "description": "The number of marks to award for the part. This could be a constant, or depend on the number of choices, or 1 per correct choice.
"}, "marks": {"name": "marks", "group": "Ungrouped variables", "templateType": "anything", "definition": "map(\n award(available_marks/num_minimum,x=min(ns)),\n x,\n ns\n)", "description": "Marking matrix- the minimum number in the list should be ticked. The marks are scaled to add up to the available marks
"}, "ns": {"name": "ns", "group": "Ungrouped variables", "templateType": "anything", "definition": "repeat(random(1..7),5)", "description": "A list of random numbers. The student will have to tick the lowest value wherever it appears.
"}}, "variable_groups": [], "name": "Tick every occurrence of the lowest number in a list", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "A randomly generated list of numbers is shown to the student. They must tick every occurrence of the lowest number. The number of occurrences isn't always the same - sometimes the minimum is unique and sometimes it is repeated. The map
function makes it easy to construct a marking matrix.
Tick every occurrence of the lowest value in the list
", "matrix": "marks", "minMarks": 0, "shuffleChoices": false, "warningType": "none", "marks": 0, "maxMarks": 0, "customMarkingAlgorithm": "", "displayColumns": 0, "showFeedbackIcon": true, "displayType": "checkbox", "variableReplacementStrategy": "originalfirst", "maxAnswers": 0}], "functions": {}, "tags": [], "extensions": [], "preamble": {"css": "", "js": ""}, "rulesets": {}, "statement": "", "ungrouped_variables": ["ns", "marks", "num_minimum", "available_marks"], "advice": "", "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/"}]}