// Numbas version: exam_results_page_options {"name": "Precedence of operators 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Precedence of operators 1", "tags": ["BEDMAS", "BIDMAS", "BODMAS", "Precedence of Operators"], "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.

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

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

", "minvalue": "{a+b*c}", "type": "numberentry", "maxvalue": "{a+b*c}", "marks": 1.0, "showPrecisionHint": false}, {"prompt": "

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

", "minvalue": "{a*b+c}", "type": "numberentry", "maxvalue": "{a*b+c}", "marks": 1.0, "showPrecisionHint": false}, {"prompt": "

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

", "minvalue": "{h-a2}", "type": "numberentry", "maxvalue": "{h-a2}", "marks": 1.0, "showPrecisionHint": false}, {"prompt": "

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

", "minvalue": "{a*b + c-f*g}", "type": "numberentry", "maxvalue": "{a*b + c-f*g}", "marks": 1.0, "showPrecisionHint": false}, {"prompt": "

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

", "minvalue": "{a1-c1*d1-e1*g1}", "type": "numberentry", "maxvalue": "{a1-c1*d1-e1*g1}", "marks": 1.0, "showPrecisionHint": false}], "extensions": [], "statement": "

Evaluate the following expressions:

", "variable_groups": [], "progress": "testing", "type": "question", "variables": {"a": {"definition": "random(2..9)", "name": "a"}, "f1": {"definition": "random(3..7)", "name": "f1"}, "c": {"definition": "random(2..8 except [a,b])", "name": "c"}, "b": {"definition": "random(2..11 except a)", "name": "b"}, "d": {"definition": "random(3..7)", "name": "d"}, "g": {"definition": "random(2..9)", "name": "g"}, "f": {"definition": "random(1..11 except[a,b,c,d,e])", "name": "f"}, "h": {"definition": "random(7..15)", "name": "h"}, "a1": {"definition": "random(2..9)", "name": "a1"}, "a2": {"definition": "random(2..9)", "name": "a2"}, "b1": {"definition": "random(2..9 except a1)", "name": "b1"}, "b2": {"definition": "random(2..9 except a2)", "name": "b2"}, "c2": {"definition": "random(2..9 except [a2,b2])", "name": "c2"}, "c1": {"definition": "random(2..9 except [a1,b1])", "name": "c1"}, "g1": {"definition": "random(1..9)", "name": "g1"}, "e1": {"definition": "random(2..6)", "name": "e1"}, "d1": {"definition": "random(1..11 except [a1,b1,c1])", "name": "d1"}}, "metadata": {"notes": "", "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.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}