// Numbas version: exam_results_page_options {"name": "Q6 (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": [{"functions": {}, "ungrouped_variables": ["num1", "num2", "num3", "ans", "num4"], "name": "Q6 (Percentage error in rounding to 1 significant figure)", "tags": ["rebelmaths"], "advice": "

$ABS(\\frac{(\\var{num4} - (\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}}))}{(\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}})}) \\times 100 = \\var{ans}$

", "rulesets": {}, "parts": [{"prompt": "

Calculate the percentage error, correct to one decimal place?

\n

[[0]]%

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "precision": "1", "maxValue": "{ans}", "minValue": "{ans}", "variableReplacementStrategy": "originalfirst", "strictPrecision": true, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "showPrecisionHint": false, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"num4": {"definition": "(precround(num1,0)* precround(num2,0))/ precround(num3,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num4", "description": ""}, "ans": {"definition": "(abs(num4-((num1*num2)/num3))/((num1*num2)/num3))*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}, "num1": {"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])", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "random(2.01..3.49#0.01 except 2.5 except 3 except 3.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "num3": {"definition": "random(0.5..1.5#0.01 except 1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num3", "description": ""}}, "metadata": {"description": "

Percentage error in rounding to 1 significant figure

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}