// Numbas version: finer_feedback_settings {"name": "Division and remainder", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Division and remainder", "tags": [], "metadata": {"description": "
A simple test for division and remainder.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{divident} ÷ {divisor} = ? r ?
", "advice": "First, we want to find the largest multiple of {divisor} which is less than or equal to {divident}. This is {divisor} × {quotient} = {divisor * quotient}. The factor by which we multiply, {quotient}, is the quotient.
\nTo find the remainder, check how much you need to add to {divisor * quotient} to get to {divident}. Since {divisor * quotient} + {remainder} = {divident}, the remainder is {remainder}.
\nSo, {divident} ÷ {divisor} = {quotient} r {remainder}.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"divisor": {"name": "divisor", "group": "Ungrouped variables", "definition": "random(1..max_divisor)", "description": "", "templateType": "anything", "can_override": false}, "quotient": {"name": "quotient", "group": "Ungrouped variables", "definition": "random(0..max_quotient)", "description": "", "templateType": "anything", "can_override": false}, "remainder": {"name": "remainder", "group": "Ungrouped variables", "definition": "random(0..(divisor-1))", "description": "", "templateType": "anything", "can_override": false}, "max_divisor": {"name": "max_divisor", "group": "Ungrouped variables", "definition": "12", "description": "", "templateType": "number", "can_override": true}, "max_quotient": {"name": "max_quotient", "group": "Ungrouped variables", "definition": "10", "description": "", "templateType": "number", "can_override": true}, "divident": {"name": "divident", "group": "Ungrouped variables", "definition": "divisor * quotient + remainder", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["max_divisor", "max_quotient", "divisor", "quotient", "remainder", "divident"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Quotient", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "quotient", "maxValue": "quotient", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Remainder", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "remainder", "maxValue": "remainder", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Matthias Troffaes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/13999/"}]}]}], "contributors": [{"name": "Matthias Troffaes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/13999/"}]}