// Numbas version: exam_results_page_options {"name": "1. Precedence of operators", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "f1", "c", "b", "e1", "d", "g", "f", "h", "a1", "a2", "b1", "b2", "c2", "c1", "g1", "d1"], "extensions": [], "variable_groups": [], "parts": [{"minValue": "{a+b*c}", "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 1, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "allowFractions": false, "type": "numberentry", "showCorrectAnswer": true, "mustBeReduced": false, "prompt": "

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

", "mustBeReducedPC": 0, "maxValue": "{a+b*c}", "correctAnswerFraction": false, "variableReplacements": []}, {"minValue": "{a*b+c}", "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 1, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "allowFractions": false, "type": "numberentry", "showCorrectAnswer": true, "mustBeReduced": false, "prompt": "

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

", "mustBeReducedPC": 0, "maxValue": "{a*b+c}", "correctAnswerFraction": false, "variableReplacements": []}, {"minValue": "{h-a2}", "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 1, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "allowFractions": false, "type": "numberentry", "showCorrectAnswer": true, "mustBeReduced": false, "prompt": "

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

", "mustBeReducedPC": 0, "maxValue": "{h-a2}", "correctAnswerFraction": false, "variableReplacements": []}, {"minValue": "{a*b + c-f*g}", "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 1, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "allowFractions": false, "type": "numberentry", "showCorrectAnswer": true, "mustBeReduced": false, "prompt": "

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

", "mustBeReducedPC": 0, "maxValue": "{a*b + c-f*g}", "correctAnswerFraction": false, "variableReplacements": []}, {"minValue": "{a1-c1*d1-e1*g1}", "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "marks": 1, "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "allowFractions": false, "type": "numberentry", "showCorrectAnswer": true, "mustBeReduced": false, "prompt": "

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

", "mustBeReducedPC": 0, "maxValue": "{a1-c1*d1-e1*g1}", "correctAnswerFraction": false, "variableReplacements": []}], "rulesets": {}, "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

", "statement": "

Evaluate the following expressions:

", "name": "1. Precedence of operators", "preamble": {"js": "", "css": ""}, "variables": {"b": {"templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": "", "definition": "random(2..10 except a)"}, "g": {"templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": "", "definition": "random(2..9)"}, "b2": {"templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": "", "definition": "random(2..9 except a2)"}, "d1": {"templateType": "anything", "group": "Ungrouped variables", "name": "d1", "description": "", "definition": "random(1..11 except [a1,b1,c1])"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": "", "definition": "random(3..7)"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": "", "definition": "random(1..11 except[a,b,c,d,e])"}, "h": {"templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": "", "definition": "random(2..7)"}, "g1": {"templateType": "anything", "group": "Ungrouped variables", "name": "g1", "description": "", "definition": "random(1..9)"}, "c1": {"templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": "", "definition": "random(2..8 except [a1,b1])"}, "c2": {"templateType": "anything", "group": "Ungrouped variables", "name": "c2", "description": "", "definition": "random(2..9 except [a2,b2])"}, "f1": {"templateType": "anything", "group": "Ungrouped variables", "name": "f1", "description": "", "definition": "random(3..7)"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": "", "definition": "random(2..6 except [a,b])"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": "", "definition": "random(2..9)"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": "", "definition": "random(2..9)"}, "e1": {"templateType": "anything", "group": "Ungrouped variables", "name": "e1", "description": "", "definition": "random(2..6)"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": "", "definition": "random(2..9 except a1)"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": "", "definition": "random(2..5)"}}, "tags": [], "functions": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "emma rand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/115/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}