// Numbas version: exam_results_page_options {"name": "Divisibility: 125", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"preventleave": false, "showfrontpage": false, "allowregen": true}, "question_groups": [{"questions": [{"contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/", "name": "Ben Brawn"}], "name": "Divisibility: 125", "tags": [], "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["seed", "twentyfiver", "num", "thismany", "d0", "d1", "d2"], "variable_groups": [], "functions": {}, "parts": [{"extendBaseMarkingAlgorithm": true, "maxMarks": 0, "displayType": "radiogroup", "type": "1_n_2", "minMarks": 0, "showCellAnswerState": true, "scripts": {}, "displayColumns": 0, "steps": [{"extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "information", "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "prompt": "

A numbers is divisible by \$125\$ if and only if it ends with the a three digit number that is divisible by \$125\$, that is, digits \$000, \\, 125,\\, 250, \\, 375,\\, 500, \\, 625,\\, 750\$ or \$875\$.

\n

Since \$\\var{num}\$ ends with the digits \$\\var{d2}\\var{d1}\\var{d0}\$ it is NOT divisible by \$125\$.

\n

Since \$\\var{num}\$ ends with the digits \$\\var{d2}\\var{d1}\\var{d0}\$ it is divisible by \$125\$.

\n

", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "unitTests": []}], "showFeedbackIcon": true, "shuffleChoices": false, "variableReplacementStrategy": "originalfirst", "choices": ["Yes", "No"], "matrix": ["seed", "1-seed"], "marks": 0, "showCorrectAnswer": true, "prompt": "

Is \$\\var{num}\$ divisible by \$125\$?

", "stepsPenalty": "1", "unitTests": [], "distractors": ["", ""], "customMarkingAlgorithm": "", "variableReplacements": []}], "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Is this number divisible by 125? Half the time the number is, half the time it isn't. Steps give the divisibility test.

"}, "type": "question", "variables": {"d1": {"group": "Ungrouped variables", "name": "d1", "templateType": "anything", "description": "", "definition": "mod(floor(num/10),10)"}, "twentyfiver": {"group": "Ungrouped variables", "name": "twentyfiver", "templateType": "anything", "description": "", "definition": "random(500..10000#125)"}, "num": {"group": "Ungrouped variables", "name": "num", "templateType": "anything", "description": "", "definition": "if(seed=0, twentyfiver+random(1..124),twentyfiver)"}, "d2": {"group": "Ungrouped variables", "name": "d2", "templateType": "anything", "description": "", "definition": "mod(floor(num/100),10)"}, "thismany": {"group": "Ungrouped variables", "name": "thismany", "templateType": "anything", "description": "", "definition": "num/125"}, "seed": {"group": "Ungrouped variables", "name": "seed", "templateType": "anything", "description": "", "definition": "random(0,1)"}, "d0": {"group": "Ungrouped variables", "name": "d0", "templateType": "anything", "description": "", "definition": "mod(num,10)"}}, "statement": "

If you are unsure of how to do a question, click on Show steps to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again.

", "advice": "", "rulesets": {}, "extensions": []}], "pickingStrategy": "all-ordered"}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/", "name": "Ben Brawn"}]}