// Numbas version: exam_results_page_options {"name": "Q9 (Percentage error in area of circle)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["dia", "est", "ans", "area"], "name": "Q9 (Percentage error in area of circle)", "tags": ["rebelmaths"], "advice": "

Percentage error:

\n

Actual area: $\\frac{22}{7} \\times (\\frac{\\var{dia}}{2})^2 = \\var{area}$

\n

$abs(\\frac{\\var{est} - \\var{area}}{\\var{area}}) \\times 100 = \\var{ans}$%

\n

\n

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

Taking $\\pi = \\frac{22}{7}$, calculate the percentage error in the estimate, 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": false, "correctAnswerFraction": false, "showCorrectAnswer": true, "precisionPartialCredit": 0, "scripts": {}, "marks": 1, "showPrecisionHint": false, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

 The area of a circle of diameter $\\var{dia}$ cm is estimated to be $\\var{est} cm^2$.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"area": {"definition": "(22/7)*(dia/2)*(dia/2)", "templateType": "anything", "group": "Ungrouped variables", "name": "area", "description": ""}, "est": {"definition": "precround(area+3,0)", "templateType": "anything", "group": "Ungrouped variables", "name": "est", "description": ""}, "dia": {"definition": "random(10..17)", "templateType": "anything", "group": "Ungrouped variables", "name": "dia", "description": ""}, "ans": {"definition": "(abs(est-area)/area)*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}}, "metadata": {"description": "

Calculate the percentage error in the area of a circle

\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/"}]}