// Numbas version: exam_results_page_options {"name": "Feedback loop: which properties are satisfied?", "extensions": ["permutations", "eukleides"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Feedback loop: which properties are satisfied?", "tags": [], "metadata": {"description": "

Demonstrating a feedback loop in a Numbas part: which of the required properties does your answer satisfy?

", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "extensions": ["eukleides", "permutations"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"m1": {"name": "m1", "group": "Ungrouped variables", "definition": "random(0..b1-1)", "description": "", "templateType": "anything", "can_override": false}, "m2": {"name": "m2", "group": "Ungrouped variables", "definition": "random(0..b2-1)", "description": "", "templateType": "anything", "can_override": false}, "m3": {"name": "m3", "group": "Ungrouped variables", "definition": "random(0..b3-1)", "description": "", "templateType": "anything", "can_override": false}, "b1,b2,b3": {"name": "b1,b2,b3", "group": "Ungrouped variables", "definition": "shuffle([random(2,4,8),random(3,9),5])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["b1,b2,b3", "m1", "m2", "m3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "mods:\n map(\n if(mod(studentNumber,b)=m,\n add_credit(1/3, \"$\"+studentNumber+\" \\\\equiv \"+m+\" \\\\mod \"+b+\"$\")\n ,\n negative_feedback(\"$\"+studentNumber+\" \\\\equiv \"+mod(studentNumber,b)+\" \\\\mod \"+b+\"$\")\n ),\n [m,b],\n zip([m1,m2,m3],[b1,b2,b3])\n )\n\nmark:\n apply(validNumber);\n apply(mods)", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write a number congruent to:

\n", "minValue": "0", "maxValue": "0", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/beta/accounts/profile/1/"}, {"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/beta/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}