// Numbas version: exam_results_page_options {"name": "Divisibility: 125", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "ungrouped_variables": ["seed", "twentyfiver", "num", "thismany", "d0", "d1", "d2"], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "variables": {"thismany": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "thismany", "definition": "num/125"}, "num": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "num", "definition": "if(seed=0, twentyfiver+random(1..124),twentyfiver)"}, "d2": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "d2", "definition": "mod(floor(num/100),10)"}, "d0": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "d0", "definition": "mod(num,10)"}, "seed": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "seed", "definition": "random(0,1)"}, "d1": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "d1", "definition": "mod(floor(num/10),10)"}, "twentyfiver": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "twentyfiver", "definition": "random(500..10000#125)"}}, "preamble": {"css": "", "js": ""}, "extensions": [], "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.

"}, "parts": [{"extendBaseMarkingAlgorithm": true, "prompt": "

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

", "customMarkingAlgorithm": "", "showCellAnswerState": true, "type": "1_n_2", "scripts": {}, "displayType": "radiogroup", "unitTests": [], "stepsPenalty": "1", "displayColumns": 0, "shuffleChoices": false, "minMarks": 0, "distractors": ["", ""], "showCorrectAnswer": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "choices": ["Yes", "No"], "steps": [{"showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "unitTests": [], "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

", "marks": 0, "customMarkingAlgorithm": "", "variableReplacements": [], "type": "information", "extendBaseMarkingAlgorithm": true, "scripts": {}}], "matrix": ["seed", "1-seed"], "showFeedbackIcon": true, "variableReplacements": [], "maxMarks": 0}], "advice": "", "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.

", "functions": {}, "name": "Divisibility: 125", "rulesets": {}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}