// Numbas version: exam_results_page_options {"name": "Ian's copy of Using BODMAS to evaluate arithmetic expressions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "tags": ["BODMAS", "bodmas", "taxonomy"], "extensions": [], "name": "Ian's copy of Using BODMAS to evaluate arithmetic expressions", "variable_groups": [], "ungrouped_variables": ["int", "sint", "eint", "oint", "pint", "bint"], "rulesets": {}, "variables": {"sint": {"definition": "random(2..6)", "templateType": "anything", "name": "sint", "description": "

Random integer from 1 to 5.

", "group": "Ungrouped variables"}, "eint": {"definition": "random(1..9 #2 except int except sint)", "templateType": "anything", "name": "eint", "description": "

Random even integer from 2 to 10.

", "group": "Ungrouped variables"}, "int": {"definition": "random(2..10 except sint)", "templateType": "anything", "name": "int", "description": "

Random integer from 2 to 10.

", "group": "Ungrouped variables"}, "oint": {"definition": "random(1..9 #2 except int except sint)", "templateType": "anything", "name": "oint", "description": "

Random odd integer from 1 to 9.

", "group": "Ungrouped variables"}, "bint": {"definition": "random(20..50)", "templateType": "anything", "name": "bint", "description": "

A random slightly bigger integer.

", "group": "Ungrouped variables"}, "pint": {"definition": "random(1..4 except 3)", "templateType": "anything", "name": "pint", "description": "

1, 2 or 4.

", "group": "Ungrouped variables"}}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Use the BODMAS rule to determine the order in which to evaluate some arithmetic expressions.

The correct order of carrying out operations can be remembered by the mnemonic BODMAS:

\n
\n

Brackets ⇒ Ordinals ⇒ Division/Multiplication ⇒ Addition/Subtraction

\n
\n

It is important to notice that division and multiplication have the same priority - division does not have a priority over multiplication. Similarly, adition and subtraction also have the same priority. When the order is unclear, we work from left to right.

\n

Note that brackets have the highest priority, but when we evaluate them, we still need to follow BODMAS inside them.

\n

Sometimes, an alternative acronym BIDMAS (Brackets, Indices, ...) is also used.

\n

a)

\n

Division and multiplication have the same priority, so we just work from left to right. $\\var{int*int} ÷ \\var{int} = \\var{int}$ and hence

\n

\\\begin{align} \\var{int*int} ÷ \\var{int} \\times \\var{int} &= \\var{int} \\times \\var{int} \\\\&= \\var{int*int} \\text{.} \\end{align}\

\n

\n

b)

\n

Similarly, $\\var{eint*2} ÷ \\var{eint/2} = 4$ and hence

\n

\\\begin{align} \\var{eint*2} ÷ \\var{eint/2} \\times \\var{eint} &= 4 \\times \\var{eint} \\\\&= \\var{4*eint}\\text{.} \\end{align}\

\n

\n

c)

\n

Applying BODMAS, multiplication has a priority over addition. $\\var{sint + 2} \\times \\var{sint} = \\var{(sint + 2)*sint}$ and hence

\n

\\\begin{align} \\var{sint} + \\var{sint + 2} \\times \\var{sint} &= \\var{sint} + \\var{(sint + 2)*sint} \\\\&= \\var{sint + (sint + 2)*sint}\\text{.} \\end{align}\

\n

\n

d)

\n

Applying BODMAS, multiplication and division have priority over addition and subtraction. $1 \\times 0 = 0$ and $\\var{bint}\\div\\var{bint} = 1$ so

\n

\\\begin{align} \\var{bint - 15} - 1 \\times 0 + \\var{bint}\\div\\var{bint} &= \\var{bint - 15} - 0 + 1 \\\\&= \\var{bint - 14}\\text{.} \\end{align}\

\n

\n

e)

\n

Roots can be considered as powers, while fractions can be considered as a bracket divided by a bracket.

\n

\$\\displaystyle \\text{Numerator is considered as a bracket } (\\var{oint}^2+ \\sqrt{\\var{eint*eint}}) \\text{ and the denominator as } (3 \\times 2 - 2 \\times 2)\\text{.}\$

\n

Before we evaluate numerator, we calculate powers:

\n

\\\begin{align} \\sqrt{\\var{eint*eint}} &= \\var{eint} \\text{,} \\\\\\var{oint}^2 &= \\var{oint*oint} \\text{.} \\end{align}\

\n

Before we evaluate denominator we calculate multiplications:

\n

\\\begin{align} 3 \\times 2 &= 6 \\text{ and } \\\\ 2 \\times 2 &= 4\\text{.} \\end{align}\

\n

Performing addition/subtraction as the last step in evaluating numerator/denominator we get:

\n

\\\begin{align} (\\var{oint}^2+ \\sqrt{\\var{eint*eint}}) &= \\var{oint*oint} + \\var{eint} \\\\&= \\var{oint*oint + eint} \\\\\\text{and} \\\\(3 \\times 2 - 2 \\times 2) &= 6 - 4 \\\\&= 2 \\end{align} \

\n

So the fraction

\n

\\\begin{align} \\displaystyle \\frac{(\\var{oint}^2+ \\var{eint})}{(3 \\times 2 - 2 \\times 2)} &= \\frac{\\var{(oint*oint + eint)}}{2}\\text{.} \\end{align}\

\n

Evaluating the final bracket we get:

\n

\$(10 - 2) = 8\\text{.}\$

\n

As we evaluated all brackets, we can continue with:

\n

\$\\displaystyle \\frac{\\var{oint}^2+ \\sqrt{\\var{eint*eint}}}{3 \\times 2 - 2 \\times 2} + (10 - 2) \\div \\var{pint} = \\frac{\\var{(oint*oint + eint)}}{2} + 8 \\div \\var{pint} \$

\n

Now, division has a priority over addition so since $\\frac{\\var{(oint*oint + eint)}}{2} = \\var{(oint*oint + eint)/2}$ and $8 \\div \\var{pint} = \\var{8/pint}$:

\n

\\\begin{align} \\frac{\\var{(oint*oint + eint)}}{2} + 8 \\div \\var{pint} &= \\var{(oint*oint + eint)/2} + \\var{8/pint} \\\\&= \\var{(oint*oint + eint)/2 + 8/pint}\\text{.} \\end{align}\

\n

", "parts": [{"scripts": {}, "displayColumns": 0, "maxMarks": 0, "prompt": "

$\\var{int*int} ÷ \\var{int} \\times \\var{int} =$  $?$

", "choices": ["

{int*int}

", "

{int}

", "

1

"], "marks": 0, "distractors": ["", "", ""], "shuffleChoices": true, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "matrix": ["1", 0, 0], "type": "1_n_2", "displayType": "radiogroup", "showFeedbackIcon": true, "minMarks": 0}, {"scripts": {}, "displayColumns": 0, "maxMarks": 0, "prompt": "

$\\var{eint*2} ÷ \\var{eint/2} \\times \\var{eint}=$  $?$

", "choices": ["

{eint*4}

", "

1

", "

{random(2..40 except eint*4)}

"], "marks": 0, "distractors": ["", "", ""], "shuffleChoices": true, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "matrix": ["1", 0, 0], "type": "1_n_2", "displayType": "radiogroup", "showFeedbackIcon": true, "minMarks": 0}, {"scripts": {}, "displayColumns": 0, "maxMarks": 0, "prompt": "

$\\var{sint} + \\var{sint + 2} \\times \\var{sint} =$  $?$

", "choices": ["

{(sint + sint + 2)*sint}

", "

{sint + (sint + 2)*sint}

", "

{(((sint + sint + 2)*sint) + (sint + (sint + 2)*sint))/2}

"], "marks": 0, "distractors": ["", "", ""], "shuffleChoices": true, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "matrix": [0, "1", 0], "type": "1_n_2", "displayType": "radiogroup", "showFeedbackIcon": true, "minMarks": 0}, {"scripts": {}, "displayColumns": 0, "maxMarks": 0, "prompt": "

$\\var{bint - 15} - 1 \\times 0 + \\var{bint}\\div\\var{bint} =$  $?$

", "choices": ["

1

", "

{bint - 14}

"], "marks": 0, "distractors": ["", ""], "shuffleChoices": false, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "matrix": ["0", "1"], "type": "1_n_2", "displayType": "radiogroup", "showFeedbackIcon": true, "minMarks": 0}, {"variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0, "type": "gapfill", "stepsPenalty": "1", "prompt": "

$\\displaystyle \\frac{\\var{oint}^2+ \\sqrt{\\var{eint*eint}}}{3 \\times 2 - 2 \\times 2} + (10 - 2) \\div \\var{pint} =$  []

", "gaps": [{"scripts": {}, "type": "numberentry", "correctAnswerStyle": "plain", "marks": "3", "minValue": "{(oint*oint + sqrt(eint*eint))/2 + 8/pint}", "correctAnswerFraction": false, "mustBeReducedPC": "50", "variableReplacements": [], "maxValue": "{(oint*oint + sqrt(eint*eint))/2 + 8/pint}", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "showCorrectAnswer": true, "allowFractions": false, "mustBeReduced": false}], "steps": [{"variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0, "type": "information", "prompt": "

Root is another way of writing a power, e.g. $\\sqrt{4} = 4^{\\frac{1}{2}}$.

\n

Fraction means the numerator divided by the denominator, these two can be thought of as brackets while the fraction itself is a division.

\n

For example,

\n

\\begin{align}
\\sqrt4 + \\frac{4+11}{5} &= 4^{\\frac{1}{2}} + (4+11) \\div 5 \\\\
&= 4^{\\frac{1}{2}} + 15 \\div 5 & \\text{(BRACKETS)}\\\\
&= 2 + 15 \\div 5 & \\text{(ORDINALS)} \\\\
&= 2 + 3 & \\text{(DIVISION/multiplication)} \\\\
&= 5 \\text{ .} & \\text{(ADDITION/subtraction)}
\\end{align}

"}]}], "preamble": {"js": "", "css": ""}, "statement": "

Wrong order of solving operations can often lead to incorrect answers.  Therefore, the order in which we carry out a calculation is important.

\n

BODMAS is a mnemonic which tells us the correct order in which operations should be carried out:

\n
\n

Brackets ⇒ Ordinals ⇒ Division/Multiplication ⇒ Addition/Subtraction

\n
\n

Apply BODMAS and try to solve these calculations.

", "type": "question", "contributors": [{"name": "Ian Loasby", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/890/"}]}]}], "contributors": [{"name": "Ian Loasby", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/890/"}]}