// Numbas version: exam_results_page_options {"name": "Simon's copy of Q3 (Percentage error in rounding to 1 significant figure)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

A person used $\\var{num4}$ as an approximation for $\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}}$.

", "ungrouped_variables": ["num1", "num2", "num3", "ans", "num4"], "name": "Simon's copy of Q3 (Percentage error in rounding to 1 significant figure)", "extensions": [], "variables": {"num2": {"templateType": "anything", "definition": "random(2.01..3.49#0.01 except 2.5 except 3 except 3.5)", "group": "Ungrouped variables", "name": "num2", "description": ""}, "ans": {"templateType": "anything", "definition": "(abs(num4-((num1*num2)/num3))/((num1*num2)/num3))*100", "group": "Ungrouped variables", "name": "ans", "description": ""}, "num1": {"templateType": "anything", "definition": "random(84.01..90.99#0.01 except[84.5,85,85.5,85,86.5,87,87.5,88,88.5,89,89.5])", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num3": {"templateType": "anything", "definition": "random(0.5..1.5#0.01 except 1)", "group": "Ungrouped variables", "name": "num3", "description": ""}, "num4": {"templateType": "anything", "definition": "precround((precround(num1,0)* precround(num2,0))/ precround(num3,1),1)", "group": "Ungrouped variables", "name": "num4", "description": ""}}, "metadata": {"description": "

Perventage Error

\n

rebel

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"scripts": {}, "unitTests": [], "prompt": "

Calculate the percentage error, correct to one decimal place?

\n

[[0]]%

", "extendBaseMarkingAlgorithm": true, "marks": 0, "steps": [{"prompt": "

You need to find the true answer accurately. Work your division up to 4 decimal places to be sure you have the accuracy required. Then figure out how wrong the guess was. Find the absolute value (or positive value) of this error and find out what percentage that is of the correct value.

", "scripts": {}, "unitTests": [], "showFeedbackIcon": true, "marks": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "information"}], "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"precisionType": "dp", "scripts": {}, "marks": 1, "extendBaseMarkingAlgorithm": true, "precision": "1", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "minValue": "{ans}", "mustBeReducedPC": 0, "type": "numberentry", "showPrecisionHint": false, "unitTests": [], "precisionPartialCredit": 0, "mustBeReduced": false, "variableReplacements": [], "strictPrecision": true, "showCorrectAnswer": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "precisionMessage": "You have not given your answer to the correct precision.", "customMarkingAlgorithm": "", "allowFractions": false, "variableReplacementStrategy": "originalfirst", "maxValue": "{ans}"}], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "stepsPenalty": 0, "variableReplacements": [], "sortAnswers": false, "variableReplacementStrategy": "originalfirst"}], "tags": [], "variable_groups": [], "advice": "

Work out the positive value of the error (denoted by vertical lines below, e.g. |5-7| is 2 not -2), divide by the exact value, then multiply by 100 to convert to a percentage. Remember to give answers to 1 d.p. as requested.

\n

$\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}} =\\var{precround(num1*num2/num3,4)}$

\n

$\\frac{|\\var{num4} - \\var{precround(num1*num2/num3,4)}|}{\\var{precround(num1*num2/num3,4)}} \\times 100 = \\var{precround(ans,1)}$

", "rulesets": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "functions": {}, "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}