// Numbas version: exam_results_page_options {"name": "BIDMAS: Precedence of operators 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "BIDMAS: Precedence of operators 4", "tags": [], "metadata": {"description": "

Questions testing understanding of the precedence of operators using BIDMAS. That is, they test Brackets, Indices, Division/Multiplication and Addition/Subtraction.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Evaluate the following expressions:

", "advice": "

First work through the expression from left to right, evaluating any expressions inside brackets, being careful to evaluate powers (indices) before MDAS. Thus:

\n

a)

\n

$[(\\var{a}-\\var{b} \\div \\var{c}^\\var{d})+\\var{e1} \\times \\var{f}^\\var{g}] \\div (\\var{h} \\times \\var{i1}^\\var{j} -\\var{k}) \\times [\\var{l} -\\var{m} \\times \\var{n} + \\var{p} \\div \\var{q}]$

\n

$=[(\\var{a}-\\var{b} \\div \\var{c^d})+\\var{e1} \\times \\var{f^g}] \\div (\\var{h} \\times \\var{i1^j} -\\var{k}) \\times [\\var{l} -\\var{m} \\times \\var{n} + \\var{p} \\div \\var{q}]$

\n

$=[(\\var{a}-\\var{b / (c^d)})+\\var{e1*f^g}] \\div (\\var{h * i1^j} -\\var{k}) \\times [\\var{l} -\\var{m*n} + \\var{p / q}]$

\n

$=[\\var{a-b / (c^d)+e1*f^g}] \\div (\\var{h * i1^j -k}) \\times [\\var{l -m*n + p / q}]=\\var{t*(l-m*n+s)}$

\n

b)

\n

$\\var{a2}+\\var{b2} \\times (\\var{-c2})^\\var{d2} +(\\var{e2}-\\var{f2})^\\var{g2}=\\var{a2}+\\var{b2} \\times (\\var{(-c2)^d2}) +(\\var{e2-f2})^\\var{g2}=\\var{a2}+\\var{b2*((-c2)^d2)} +\\var{(e2-f2)^g2}=\\var{a2+b2*(-c2)^d2 +(e2-f2)^g2}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "r*c^d", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "i1": {"name": "i1", "group": "Ungrouped variables", "definition": "random(2..5 except [c,f])", "description": "", "templateType": "anything", "can_override": false}, "t": {"name": "t", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "random(2..7)", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(2..11)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "f2": {"name": "f2", "group": "Ungrouped variables", "definition": "random(1..11 except e2)", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "(b/(c^d)) - e1*f^g +t*h*i1^j-t*k", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "q*s", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(2..11)", "description": "", "templateType": "anything", "can_override": false}, "q": {"name": "q", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "e2": {"name": "e2", "group": "Ungrouped variables", "definition": "random(1..11)", "description": "", "templateType": "anything", "can_override": false}, "e1": {"name": "e1", "group": "Ungrouped variables", "definition": "random(2..8)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(3..7)", "description": "", "templateType": "anything", "can_override": false}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(3..7)", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(3..11)", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(2..5 except c)", "description": "", "templateType": "anything", "can_override": false}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "g2": {"name": "g2", "group": "Ungrouped variables", "definition": "random(2..3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f2", "b2", "d2", "g2", "i1", "a2", "c2", "e1", "e2", "a", "c", "b", "d", "g", "f", "h", "k", "j", "m", "l", "n", "q", "p", "s", "r", "t"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$[(\\var{a}-\\var{b} \\div \\var{c}^\\var{d})+\\var{e1} \\times \\var{f}^\\var{g}] \\div (\\var{h} \\times \\var{i1}^\\var{j} -\\var{k}) \\times [\\var{l} -\\var{m} \\times \\var{n} + \\var{p} \\div \\var{q}]$

", "minValue": "{t*(l-m*n+s)}", "maxValue": "{t*(l-m*n+s)}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{a2}+\\var{b2} \\times (\\var{-c2})^\\var{d2} +(\\var{e2}-\\var{f2})^\\var{g2}$

", "minValue": "{a2+b2*(-c2)^d2 +(e2-f2)^g2}", "maxValue": "{a2+b2*(-c2)^d2 +(e2-f2)^g2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}