// Numbas version: exam_results_page_options {"name": "Percentages", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "statement": "

Consider the following questions on percentages.

", "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "name": "Percentages", "extensions": [], "variables": {"d": {"definition": "mult*mult2", "description": "", "name": "d", "group": "Ungrouped variables", "templateType": "anything"}, "amount3": {"definition": "random(2..12)*factorsofhun[2][1]", "description": "", "name": "amount3", "group": "Ungrouped variables", "templateType": "anything"}, "ans_xa": {"definition": "(x/ gcd(x,100))", "description": "", "name": "ans_xa", "group": "Ungrouped variables", "templateType": "anything"}, "ans_za": {"definition": "(z/ gcd(z,100))", "description": "", "name": "ans_za", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"definition": "random([50,4,25,5,20])", "description": "", "name": "b", "group": "Ungrouped variables", "templateType": "anything"}, "number": {"definition": "random(12..78)", "description": "", "name": "number", "group": "Ungrouped variables", "templateType": "anything"}, "dec1": {"definition": "random(0.1..0.9#0.01)", "description": "", "name": "dec1", "group": "Ungrouped variables", "templateType": "anything"}, "ans_1": {"definition": "(u-t)*100/t", "description": "", "name": "ans_1", "group": "Ungrouped variables", "templateType": "anything"}, "nicelist": {"definition": "shuffle(map(2^a*5^b,[a,b],[[0,1],[0,2],[1,0],[2,0],[3,0],[4,0],[5,0],[6,0],[1,1],[2,1],[3,1],[4,1],[1,2]]))\n", "description": "", "name": "nicelist", "group": "Ungrouped variables", "templateType": "anything"}, "ans_yb": {"definition": "(100/ gcd(y, 100))", "description": "", "name": "ans_yb", "group": "Ungrouped variables", "templateType": "anything"}, "amount2": {"definition": "random(2..12)*factorsofhun[0][1]", "description": "", "name": "amount2", "group": "Ungrouped variables", "templateType": "anything"}, "percent3": {"definition": "random(2..19)*factorsofhun[2][0]", "description": "", "name": "percent3", "group": "Ungrouped variables", "templateType": "anything"}, "u": {"definition": "random(22001..24000)", "description": "", "name": "u", "group": "Ungrouped variables", "templateType": "anything"}, "ans_3": {"definition": "w/(100+s)*100", "description": "", "name": "ans_3", "group": "Ungrouped variables", "templateType": "anything"}, "t": {"definition": "random(20000..22000)", "description": "", "name": "t", "group": "Ungrouped variables", "templateType": "anything"}, "ans_ya": {"definition": "(y/ gcd(y,100))", "description": "", "name": "ans_ya", "group": "Ungrouped variables", "templateType": "anything"}, "ans_2": {"definition": "t/100*(100+v)", "description": "", "name": "ans_2", "group": "Ungrouped variables", "templateType": "anything"}, "v": {"definition": "random(5..15)", "description": "", "name": "v", "group": "Ungrouped variables", "templateType": "anything"}, "x": {"definition": "random(2..99)", "description": "", "name": "x", "group": "Ungrouped variables", "templateType": "anything"}, "ans_xb": {"definition": "(100/ gcd(x, 100))", "description": "", "name": "ans_xb", "group": "Ungrouped variables", "templateType": "anything"}, "dec3": {"definition": "random(1..5#0.01)", "description": "", "name": "dec3", "group": "Ungrouped variables", "templateType": "anything"}, "s": {"definition": "random(5..15)", "description": "", "name": "s", "group": "Ungrouped variables", "templateType": "anything"}, "ans2": {"definition": "percent2*amount2/100", "description": "", "name": "ans2", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"definition": "random(1..b-1)", "description": "", "name": "a", "group": "Ungrouped variables", "templateType": "anything"}, "y": {"definition": "random(2..99)", "description": "", "name": "y", "group": "Ungrouped variables", "templateType": "anything"}, "dec2": {"definition": "random(0.1..0.9#0.001 except list(0.1..0.9#0.01))", "description": "", "name": "dec2", "group": "Ungrouped variables", "templateType": "anything"}, "mult2": {"definition": "random(4,5)", "description": "", "name": "mult2", "group": "Ungrouped variables", "templateType": "anything"}, "percent": {"definition": "random(1..99 except list(0..100#5))", "description": "", "name": "percent", "group": "Ungrouped variables", "templateType": "anything"}, "c": {"definition": "mult*random(1..mult2-1)", "description": "", "name": "c", "group": "Ungrouped variables", "templateType": "anything"}, "mult": {"definition": "random(3,7,9,11)", "description": "", "name": "mult", "group": "Ungrouped variables", "templateType": "anything"}, "w": {"definition": "random(22001..24000)", "description": "", "name": "w", "group": "Ungrouped variables", "templateType": "anything"}, "percent2": {"definition": "random(2..19)*factorsofhun[0][0]", "description": "", "name": "percent2", "group": "Ungrouped variables", "templateType": "anything"}, "ans3": {"definition": "percent3*amount3/100", "description": "", "name": "ans3", "group": "Ungrouped variables", "templateType": "anything"}, "factorsofhun": {"definition": "shuffle([[2,50],[4,25],[5,20]])", "description": "", "name": "factorsofhun", "group": "Ungrouped variables", "templateType": "anything"}, "ans_zb": {"definition": "(100/ gcd(z, 100))", "description": "", "name": "ans_zb", "group": "Ungrouped variables", "templateType": "anything"}, "z": {"definition": "random(2..99)", "description": "", "name": "z", "group": "Ungrouped variables", "templateType": "anything"}}, "variable_groups": [], "preamble": {"js": "", "css": ""}, "parts": [{"marks": 0, "showFeedbackIcon": true, "scripts": {}, "gaps": [{"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "{ans2}", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "{ans2}", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "{ans3}", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "{ans3}", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}], "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

$\\var{percent2}$% of $\\var{amount2}$ is [[0]]

\n

$\\var{percent3}$% of $\\var{amount3}$ is [[1]]

", "showCorrectAnswer": true}, {"marks": 0, "showFeedbackIcon": true, "scripts": {}, "gaps": [{"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "{a/b*100}", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "{a/b*100}", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "{c/d*100}", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "{c/d*100}", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}], "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Expess the following fractions as percentages:

\n

$\\displaystyle\\frac{\\var{a}}{\\var{b}}$ = [[0]]%  

\n

$\\displaystyle\\frac{\\var{c}}{\\var{d}}$ = [[1]]%  

", "showCorrectAnswer": true}, {"marks": 0, "showFeedbackIcon": true, "scripts": {}, "gaps": [{"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "dec1*100", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "dec1*100", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "dec2*100", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "dec2*100", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "1", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "dec3*100", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "dec3*100", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}], "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Rewrite the following decimals as percentages:

\n

$\\var{dec1}$ = [[0]]%

\n

$\\var{dec2}$ = [[1]]%

\n

$\\var{dec3}$ = [[2]]%

", "showCorrectAnswer": true}, {"marks": 0, "showFeedbackIcon": true, "scripts": {}, "gaps": [{"marks": "0.5", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": true, "correctAnswerFraction": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "ans_xa", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "ans_xa", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "0.5", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": true, "correctAnswerFraction": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "ans_xb", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "ans_xb", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "0.5", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": true, "correctAnswerFraction": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "ans_ya", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "ans_ya", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "0.5", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": true, "correctAnswerFraction": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "ans_yb", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "ans_yb", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "0.5", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": true, "correctAnswerFraction": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "ans_za", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "ans_za", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}, {"marks": "0.5", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "minValue": "ans_zb", "correctAnswerStyle": "plain", "type": "numberentry", "maxValue": "ans_zb", "showCorrectAnswer": true, "mustBeReduced": false, "variableReplacements": []}], "type": "gapfill", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

Covert the following percentages to fractions in their lowest terms.

\n

$\\var{x}$% = [[0]]/[[1]]

\n

$\\var{y}$% =[[2]]/[[3]]

\n

$\\var{z}$% = [[4]]/[[5]]

", "showCorrectAnswer": true}], "ungrouped_variables": ["percent", "nicelist", "factorsofhun", "amount2", "percent2", "ans2", "amount3", "percent3", "ans3", "b", "a", "mult", "mult2", "c", "d", "number", "dec1", "dec2", "dec3", "x", "y", "z", "ans_xa", "ans_ya", "ans_za", "t", "u", "w", "v", "s", "ans_1", "ans_2", "ans_3", "ans_xb", "ans_yb", "ans_zb"], "rulesets": {}, "advice": "", "type": "question", "contributors": [{"name": "Vicky Hall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/659/"}]}]}], "contributors": [{"name": "Vicky Hall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/659/"}]}