// Numbas version: exam_results_page_options {"name": "Simon's copy of Order of operations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "tags": ["Arithmetic", "arithmetic", "brackets", "rebelmaths", "vet"], "variables": {"c4": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "c6*random(1..5)", "name": "c4"}, "c1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-4..4 except [-1,0,1])", "name": "c1"}, "a3": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..15)", "name": "a3"}, "b3": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-4..4 except [-1,0,1])", "name": "b3"}, "b5": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..9)", "name": "b5"}, "b7": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-50..50 except 0)", "name": "b7"}, "ans1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "a1+a2*a3+a4/a5", "name": "ans1"}, "ans2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "b1/b2+b3*(b4+b5)*b6+b7", "name": "ans2"}, "a4": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(6,12,18,24,30)", "name": "a4"}, "b6": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "1", "name": "b6"}, "c3": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..9)", "name": "c3"}, "b1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(10,20,30,40,50)", "name": "b1"}, "b2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(2,5)", "name": "b2"}, "a1": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-50..50 except 0)", "name": "a1"}, "b4": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..9)", "name": "b4"}, "c6": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(2,3)", "name": "c6"}, "a2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(-4..4 except [-1,0,1])", "name": "a2"}, "a5": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(2,3)", "name": "a5"}, "ans3": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "c1*(c2+c3)+(c4+c5)/c6", "name": "ans3"}, "c5": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "c6*random(1..5)", "name": "c5"}, "c2": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "random(1..9)", "name": "c2"}}, "name": "Simon's copy of Order of operations", "advice": "

Remember the order of operations

\n

B Brackets

\n

O pOwers

\n

D Division

\n

M Multiplication

\n

A Addition

\n

S Subtraction

\n

a)

\n

First do the calculations $\\displaystyle \\simplify[all,!simplifyFractions]{{a4}/{a5}={a4/a5}}$ and $\\simplify[all,!collectNumbers]{{a2}*{a3}={a2*a3}}$.

\n

and then we get

\n

\\[\\begin{align} \\simplify[all,!collectNumbers,!simplifyFractions]{{a1}+ {a2}{a3}+{a4}/{a5}}&=\\simplify[all,!collectNumbers,!simplifyFractions]{{a1}+ {a2*a3}+{a4/a5}}\\\\&=\\var{ans1}\\end{align}\\]

\n

b)

\n

First do the calculations  $\\displaystyle \\simplify[all,!collectNumbers,!simplifyFractions]{{b1}/{b2}={b1/b2}} \\text{ and }  \\simplify[all,!collectNumbers]{{b3}({b4}+{b5})={b3}{b4+b5}={b3*(b4+b5)}}$

\n

and then we get

\n

\\[\\begin{align} \\simplify[all,!collectNumbers,!simplifyFractions]{{b1}/{b2}+{b3}*({b4}+{b5}){b6}+{b7}}&=\\simplify[all,!collectNumbers]{{b1/b2}+{b3*(b4+b5)}+{b7}}\\\\&=\\var{ans2}\\end{align}\\]

\n

c)

\n

First do the calculations  $\\displaystyle \\simplify[all,!collectNumbers,!simplifyFractions]{({c4}+{c5})/{c6}={c4+c5}/{c6}={(c4+c5)/c6}} \\text{ and }  \\simplify[all,!collectNumbers]{{c1}({c2}+{c3})={c1}{c2+c3}={c1*(c2+c3)}}$

\n

and then we get

\n

\\[\\begin{align} \\simplify[all,!collectNumbers,!simplifyFractions]{{c1}*({c2}+{c3})+({c4}+{c5})/{c6}}&=\\simplify[all,!collectNumbers]{{c1*(c2+c3)}+{(c4+c5)/c6}}\\\\&=\\var{ans3}\\end{align}\\]

\n

", "showQuestionGroupNames": false, "statement": "

Use the correct order of operations to calculate the following

", "variable_groups": [], "metadata": {"description": "

Order of Operations

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"gaps": [{"allowFractions": false, "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false, "minValue": "ans1", "maxValue": "ans1", "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

$\\displaystyle \\simplify[all,!collectNumbers,!simplifyFractions]{{a1}+ {a2}{a3}+{a4}/{a5}}=\\;$[[0]]

"}, {"gaps": [{"allowFractions": false, "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false, "minValue": "ans2", "maxValue": "ans2", "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

$\\displaystyle \\simplify[all,!simplifyFractions,!collectNumbers]{{b1}/{b2}+{b3}({b4}+{b5}){b6}+{b7}}=\\;$[[0]]

"}, {"gaps": [{"allowFractions": false, "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "marks": 1, "showPrecisionHint": false, "minValue": "ans3", "maxValue": "ans3", "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "prompt": "

$\\displaystyle \\simplify[all,!collectNumbers,!simplifyFractions]{{c1}({c2}+{c3})+({c4}+{c5})/{c6}}=\\;$[[0]]

"}], "ungrouped_variables": ["a1", "a4", "ans1", "ans2", "ans3", "a3", "b4", "b5", "b6", "a2", "b7", "b1", "b2", "b3", "c3", "c2", "c1", "a5", "c6", "c5", "c4"], "type": "question", "preamble": {"js": "", "css": ""}, "rulesets": {}, "functions": {}, "extensions": [], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}