// Numbas version: exam_results_page_options {"name": "Order of Operations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"stepsPenalty": "1", "marks": 0, "showFeedbackIcon": true, "gaps": [{"scripts": {}, "mustBeReduced": false, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "minValue": "{ans1}", "type": "numberentry", "allowFractions": false, "maxValue": "{ans1}", "variableReplacements": [], "correctAnswerFraction": false, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "prompt": "

$\\var{a}+\\var{b}\\times\\var{c}=$ [[0]]

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "

We must deal with multiplication and division before addition and subtraction:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{a}+\\var{b}\\times\\var{c}$$=$$\\var{a}+(\\var{b}\\times\\var{c})$
$=$$\\var{a}+\\var{b*c}$
$=$$\\var{ans1}$
", "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "variableReplacements": []}], "type": "gapfill", "scripts": {}, "variableReplacements": []}, {"stepsPenalty": "1", "marks": 0, "showFeedbackIcon": true, "gaps": [{"scripts": {}, "mustBeReduced": false, "marks": 1, "mustBeReducedPC": 0, "showCorrectAnswer": true, "minValue": "{ans2}", "type": "numberentry", "allowFractions": true, "maxValue": "{ans2}", "variableReplacements": [], "correctAnswerFraction": true, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "prompt": "

$\\var{d}-\\var{f}\\div\\var{g}=$ [[0]]

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "

We must deal with multiplication and division before addition and subtraction:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{d}-\\var{f}\\div\\var{g}$$=$$\\var{d}-(\\var{f}\\div\\var{g})$
$=$$\\var{d}-\\var{a}$
$=$$\\var{ans2}$
", "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "variableReplacements": []}], "type": "gapfill", "scripts": {}, "variableReplacements": []}, {"stepsPenalty": "2", "marks": 0, "showFeedbackIcon": true, "gaps": [{"scripts": {}, "mustBeReduced": false, "marks": "2", "mustBeReducedPC": 0, "showCorrectAnswer": true, "minValue": "{ans3}", "type": "numberentry", "allowFractions": true, "maxValue": "{ans3}", "variableReplacements": [], "correctAnswerFraction": true, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst"}], "showCorrectAnswer": true, "prompt": "

$\\var{d}\\times\\var{c}-\\var{b}\\times\\var{a}+\\var{g^2}\\div \\var{g}=$ [[0]]

", "variableReplacementStrategy": "originalfirst", "steps": [{"marks": 0, "showFeedbackIcon": true, "showCorrectAnswer": true, "prompt": "

We must deal with multiplication and division before addition and subtraction:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{d}\\times\\var{c}-\\var{b}\\times\\var{a}+\\var{g^2}\\div \\var{g}$$=$$(\\var{d}\\times\\var{c})-(\\var{b}\\times\\var{a})+(\\var{g^2}\\div \\var{g})$
$=$$\\var{d*c}-\\var{a*b}+\\var{g}$
$=$$\\var{ans3}$
", "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "variableReplacements": []}], "type": "gapfill", "scripts": {}, "variableReplacements": []}], "preamble": {"css": "", "js": ""}, "name": "Order of Operations", "ungrouped_variables": ["a", "b", "c", "ans1", "d", "f", "g", "ans2", "ans3", "list"], "variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "extensions": [], "rulesets": {}, "variable_groups": [], "statement": "

Simplify the following to find the value of each expression:

", "advice": "", "tags": [], "metadata": {"description": "

Order of precedence for multiplication, division, addition, subtraction.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variables": {"ans2": {"definition": "d-a", "description": "", "group": "Ungrouped variables", "name": "ans2", "templateType": "anything"}, "ans1": {"definition": "a+b*c", "description": "", "group": "Ungrouped variables", "name": "ans1", "templateType": "anything"}, "f": {"definition": "a*g", "description": "", "group": "Ungrouped variables", "name": "f", "templateType": "anything"}, "b": {"definition": "list[2]", "description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything"}, "list": {"definition": "shuffle(2..12)[0..4]", "description": "", "group": "Ungrouped variables", "name": "list", "templateType": "anything"}, "d": {"definition": "random(-6..6 except 0)", "description": "", "group": "Ungrouped variables", "name": "d", "templateType": "anything"}, "c": {"definition": "list[3]", "description": "", "group": "Ungrouped variables", "name": "c", "templateType": "anything"}, "g": {"definition": "list[3]", "description": "", "group": "Ungrouped variables", "name": "g", "templateType": "anything"}, "a": {"definition": "list[1]", "description": "", "group": "Ungrouped variables", "name": "a", "templateType": "anything"}, "ans3": {"definition": "d*c-a*b+g", "description": "", "group": "Ungrouped variables", "name": "ans3", "templateType": "anything"}}, "type": "question", "contributors": [{"name": "Angus Rosenburgh", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2048/"}]}]}], "contributors": [{"name": "Angus Rosenburgh", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2048/"}]}