// Numbas version: exam_results_page_options {"name": "Q2 (Percentage Error with adding and Subtracting)", "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", "num1a", "num2a", "num3a", "ans1"], "name": "Q2 (Percentage Error with adding and Subtracting)", "tags": ["rebelmaths"], "advice": "

part 1

\n

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

\n

part 2

\n

$ABS(\\frac{(\\var{num3a} - (\\var{num1a} - \\var{num2a}))}{(\\var{num1a} - \\var{num2a})}) \\times 100 = \\var{ans1}$

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

The answer to $\\var{num1} + \\var{num2}$ was given as $\\var{num3}$.

\n

What was the percentage error?

\n

[[0]]%

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

You need to find accurte answer. Work your division up to 5 decimals places to be sure you have the accuracy required.

\n

Work this video to recap how to divide decimals by decimals.

\n

Video

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}, {"prompt": "

The answer to $\\var{num1a} - \\var{num2a}$ was given as $\\var{num3a}$.

\n

What was the percentage error?

\n

[[0]]%

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

Solve the following correct to two decimal places.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"num2a": {"definition": "random(6.1..8.9#0.01 except 7 except 8)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2a", "description": ""}, "num1": {"definition": "random(2.8..4#0.01)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "random(1.8..3.5#0.01)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "num3": {"definition": "precround(num1,1)+ precround(num2,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num3", "description": ""}, "ans1": {"definition": "(abs(num3a-(num1a-num2a))/(num1a-num2a))*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "num1a": {"definition": "random(11.1..14.9#0.01 except 12 except 13 except 14)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1a", "description": ""}, "num3a": {"definition": "precround(num1a,1)- precround(num2a,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num3a", "description": ""}, "ans": {"definition": "(abs(num3-(num1+num2))/(num1+num2))*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}}, "metadata": {"description": "

Percentage Error

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