// Numbas version: exam_results_page_options {"name": "Precedence of operators", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"g1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "g1"}, "e1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "name": "e1"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..7)", "description": "", "name": "d"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..8 except [a,b])", "description": "", "name": "c"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..11 except[a,b,c,d,e])", "description": "", "name": "f"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9 except a1)", "description": "", "name": "b1"}, "d1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..11 except [a1,b1,c1])", "description": "", "name": "d1"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "a1"}, "b2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9 except a2)", "description": "", "name": "b2"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9 except [a2,b2])", "description": "", "name": "c2"}, "c1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9 except [a1,b1])", "description": "", "name": "c1"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "a"}, "h": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(7..15)", "description": "", "name": "h"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..11 except a)", "description": "", "name": "b"}, "g": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "g"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "a2"}, "f1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..7)", "description": "", "name": "f1"}}, "ungrouped_variables": ["a", "f1", "c", "b", "e1", "d", "g", "f", "h", "a1", "a2", "b1", "b2", "c2", "c1", "g1", "d1"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Precedence of operators", "functions": {}, "variable_groups": [], "showQuestionGroupNames": false, "parts": [{"showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "minValue": "{a+b*c}", "prompt": "

$\\var{a}+\\var{b} \\times\\var{c}$

", "showPrecisionHint": false, "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "variableReplacements": [], "marks": 1, "maxValue": "{a+b*c}"}, {"showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "minValue": "{a*b+c}", "prompt": "

$\\var{a} \\times \\var{b}+\\var{c}$

", "showPrecisionHint": false, "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "variableReplacements": [], "marks": 1, "maxValue": "{a*b+c}"}, {"showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "minValue": "{h-a2}", "prompt": "

$\\var{h}-\\var{a2*b2} \\div \\var{b2}$

", "showPrecisionHint": false, "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "variableReplacements": [], "marks": 1, "maxValue": "{h-a2}"}, {"showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "minValue": "{a*b + c-f*g}", "prompt": "

$\\var{a} \\times \\var{b}+\\var{c*d} \\div \\var{d} - \\var{f}  \\times \\var{g}$

", "showPrecisionHint": false, "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "variableReplacements": [], "marks": 1, "maxValue": "{a*b + c-f*g}"}, {"showCorrectAnswer": true, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "minValue": "{a1-c1*d1-e1*g1}", "prompt": "

$\\var{a1*b1} \\div \\var{b1}-\\var{c1} \\times \\var{d1} - \\var{e1*f1} \\div \\var{f1} \\times \\var{g1}$

", "showPrecisionHint": false, "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "variableReplacements": [], "marks": 1, "maxValue": "{a1-c1*d1-e1*g1}"}], "statement": "

Evaluate the following expressions:

", "tags": ["BEDMAS", "BIDMAS", "BODMAS", "checked2015", "Precedence of Operators", "SFY0001"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "

Questions testing understanding of the precedence of operators using BIDMAS, applied to integers. These questions only test DMAS. That is, only Division/Multiplcation and Addition/Subtraction.

"}, "advice": "

First work through the expression from left to right, evaluating any multiplications and divisions as you come to them. You should be left with an expression involving only pluses and minuses. Evaluate this expression, again working from left to right. Thus:

\n

a)

\n

$\\var{a}+\\var{b} \\times \\var{c}=\\var{a}+\\var{b*c}=\\var{a+b*c}$

\n

b)

\n

$\\var{a} \\times \\var{b}+\\var{c}=\\var{a*b}+\\var{c}=\\var{a*b+c}$

\n

c)

\n

$\\var{h}-\\var{a2*b2} \\div \\var{b2}=\\var{h}-\\var{a2}=\\var{h-a2}$

\n

d)

\n

$\\var{a} \\times \\var{b}+\\var{c*d} \\div \\var{d} - \\var{f} \\times \\var{g}=\\var{a*b}+\\var{c}-\\var{f*g}=\\var{a*b + c-f*g}$

\n

e)

\n

$\\var{a1*b1} \\div \\var{b1}-\\var{c1} \\times \\var{d1} - \\var{e1*f1} \\div \\var{f1} \\times \\var{g1}=\\var{a1}-\\var{c1*d1}-\\var{e1*g1}=\\var{a1-c1*d1-e1*g1}$

\n

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}