// Numbas version: exam_results_page_options {"name": "Divisibility: 20", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"twoer": {"templateType": "anything", "description": "", "name": "twoer", "definition": "random(300..2000#20)", "group": "Ungrouped variables"}, "num": {"templateType": "anything", "description": "", "name": "num", "definition": "if(seed=0, twoer+random(1..19),twoer)", "group": "Ungrouped variables"}, "d0": {"templateType": "anything", "description": "", "name": "d0", "definition": "mod(num,10)", "group": "Ungrouped variables"}, "seed": {"templateType": "anything", "description": "", "name": "seed", "definition": "random(0,1)", "group": "Ungrouped variables"}, "d1": {"templateType": "anything", "description": "", "name": "d1", "definition": "mod(floor(num/10),10)", "group": "Ungrouped variables"}, "thismany": {"templateType": "anything", "description": "", "name": "thismany", "definition": "num/20", "group": "Ungrouped variables"}}, "parts": [{"scripts": {}, "stepsPenalty": "1", "showFeedbackIcon": true, "showCorrectAnswer": true, "displayColumns": 0, "maxMarks": 0, "choices": ["Yes", "No"], "shuffleChoices": false, "minMarks": 0, "marks": 0, "showCellAnswerState": true, "steps": [{"customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "information", "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "unitTests": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

A number is divisible by $20$ if and only if it ends with the digits $00,\\, 20, \\,40,\\,60$ or $80$ (because it needs to be divisible by $10$ and then after dividing by $10$ it still needs to be divisible by $2$). 

\n

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

\n

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

\n

"}], "extendBaseMarkingAlgorithm": true, "type": "1_n_2", "variableReplacements": [], "unitTests": [], "distractors": ["", ""], "displayType": "radiogroup", "matrix": ["seed", "1-seed"], "prompt": "

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

", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst"}], "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": {}, "extensions": [], "tags": [], "ungrouped_variables": ["seed", "twoer", "num", "thismany", "d1", "d0"], "rulesets": {}, "advice": "", "metadata": {"description": "

Is this number divisible by 20? Half the time the number is, half the time it isn't.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "name": "Divisibility: 20", "preamble": {"js": "", "css": ""}, "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/"}]}