// Numbas version: finer_feedback_settings {"name": "Order of operations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a1", "a4", "ans1", "ans2", "ans3", "a3", "b4", "b5", "b6", "a2", "b7", "b1", "b2", "b3", "c3", "c2", "c1", "a5", "c6", "c5", "c4"], "name": "Order of operations", "tags": ["Arithmetic", "arithmetic", "brackets", "rebelmaths", "vet"], "advice": "
Remember the order of operations
\nB Brackets
\nO pOwers
\nD Division
\nM Multiplication
\nA Addition
\nS Subtraction
\na)
\nFirst do the calculations $\\displaystyle \\simplify[all,!simplifyFractions]{{a4}/{a5}={a4/a5}}$ and $\\simplify[all,!collectNumbers]{{a2}*{a3}={a2*a3}}$.
\nand 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}\\]
\nb)
\nFirst 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)}}$
\nand 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}\\]
\nc)
\nFirst 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)}}$
\nand 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", "rulesets": {}, "parts": [{"prompt": "$\\displaystyle \\simplify[all,!collectNumbers,!simplifyFractions]{{a1}+ {a2}{a3}+{a4}/{a5}}=\\;$[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "ans1", "minValue": "ans1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "$\\displaystyle \\simplify[all,!simplifyFractions,!collectNumbers]{{b1}/{b2}+{b3}({b4}+{b5}){b6}+{b7}}=\\;$[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "ans2", "minValue": "ans2", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "$\\displaystyle \\simplify[all,!collectNumbers,!simplifyFractions]{{c1}({c2}+{c3})+({c4}+{c5})/{c6}}=\\;$[[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "ans3", "minValue": "ans3", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "Use the correct order of operations to calculate the following
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a1": {"definition": "random(-50..50 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "ans1": {"definition": "a1+a2*a3+a4/a5", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "b1/b2+b3*(b4+b5)*b6+b7", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "c1*(c2+c3)+(c4+c5)/c6", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "b1": {"definition": "random(10,20,30,40,50)", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "a3": {"definition": "random(1..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "b4": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b4", "description": ""}, "b5": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b5", "description": ""}, "b6": {"definition": "1", "templateType": "anything", "group": "Ungrouped variables", "name": "b6", "description": ""}, "a2": {"definition": "random(-4..4 except [-1,0,1])", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "b7": {"definition": "random(-50..50 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b7", "description": ""}, "a4": {"definition": "random(6,12,18,24,30)", "templateType": "anything", "group": "Ungrouped variables", "name": "a4", "description": ""}, "b2": {"definition": "random(2,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": ""}, "b3": {"definition": "random(-4..4 except [-1,0,1])", "templateType": "anything", "group": "Ungrouped variables", "name": "b3", "description": ""}, "c3": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c3", "description": ""}, "c2": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c2", "description": ""}, "c1": {"definition": "random(-4..4 except [-1,0,1])", "templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": ""}, "a5": {"definition": "random(2,3)", "templateType": "anything", "group": "Ungrouped variables", "name": "a5", "description": ""}, "c6": {"definition": "random(2,3)", "templateType": "anything", "group": "Ungrouped variables", "name": "c6", "description": ""}, "c5": {"definition": "c6*random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "c5", "description": ""}, "c4": {"definition": "c6*random(1..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "c4", "description": ""}}, "metadata": {"description": "Order of Operations
\nrebelmaths
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}]}