// Numbas version: exam_results_page_options {"name": "Divisibility: 100", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "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.

", "variables": {"d0": {"description": "", "name": "d0", "definition": "mod(num,10)", "templateType": "anything", "group": "Ungrouped variables"}, "thismany": {"description": "", "name": "thismany", "definition": "num/100", "templateType": "anything", "group": "Ungrouped variables"}, "num": {"description": "", "name": "num", "definition": "if(seed=0, twentyfiver+random(1..99),twentyfiver)", "templateType": "anything", "group": "Ungrouped variables"}, "d1": {"description": "", "name": "d1", "definition": "mod(floor(num/10),10)", "templateType": "anything", "group": "Ungrouped variables"}, "seed": {"description": "", "name": "seed", "definition": "random(0,1)", "templateType": "anything", "group": "Ungrouped variables"}, "twentyfiver": {"description": "", "name": "twentyfiver", "definition": "random(1000..10000#100)", "templateType": "anything", "group": "Ungrouped variables"}}, "metadata": {"description": "

Is this number divisible by 100? Half the time the number is, half the time it isn't. Steps give the divisibility test and how to count the number of 100s.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "ungrouped_variables": ["seed", "twentyfiver", "num", "thismany", "d0", "d1"], "preamble": {"css": "", "js": ""}, "parts": [{"steps": [{"marks": 0, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "prompt": "

A numbers is divisible by $100$ if and only if it ends with the digits $00$.

\n

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

\n

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

\n

To work out how many $100$s are in a number we simply cross of the last two zeros!

\n

For instance, crossing off the $00$ at the end of $\\var{num}$ gives $\\var{num/100}$ so we can conclude there are $\\var{thismany}$ hundreds in $\\var{num}$. In other words, $\\frac{\\var{num}}{100}=\\var{thismany}$.

\n

\n

", "variableReplacementStrategy": "originalfirst", "type": "information"}], "extendBaseMarkingAlgorithm": true, "displayType": "radiogroup", "customMarkingAlgorithm": "", "scripts": {}, "showCellAnswerState": true, "variableReplacementStrategy": "originalfirst", "shuffleChoices": false, "variableReplacements": [], "displayColumns": 0, "minMarks": 0, "unitTests": [], "choices": ["Yes", "No"], "stepsPenalty": "1", "marks": 0, "type": "1_n_2", "matrix": ["seed", "1-seed"], "distractors": ["", ""], "maxMarks": 0, "prompt": "

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

", "showFeedbackIcon": true, "showCorrectAnswer": true}], "type": "question", "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Divisibility: 100", "functions": {}, "advice": "", "tags": [], "variable_groups": [], "rulesets": {}}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}