// Numbas version: exam_results_page_options {"name": "The order of operations: the four basic 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}, "preamble": {"css": "", "js": ""}, "name": "The order of operations: the four basic operations", "parts": [{"steps": [{"variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

The order of operation dictates that we deal with multiplication (and division) before addition (and subtraction), that is 

\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*c}$
$=$$\\var{ans1}$
", "marks": 0, "type": "information"}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "gaps": [{"variableReplacements": [], "minValue": "{ans1}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "maxValue": "{ans1}", "marks": 1, "type": "numberentry", "allowFractions": false, "showPrecisionHint": false, "correctAnswerFraction": false}], "stepsPenalty": 0, "prompt": "

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

", "showCorrectAnswer": true, "type": "gapfill", "marks": 0}, {"steps": [{"variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

The order of operation dictates that we deal with multiplication (and division) before addition (and subtraction), that is 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{d}-\\var{f}\\div\\var{g}$$=$$\\var{d}-\\var{a}$
$=$$\\var{ans2}$
", "marks": 0, "type": "information"}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "gaps": [{"variableReplacements": [], "minValue": "{ans2}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "maxValue": "{ans2}", "marks": 1, "type": "numberentry", "allowFractions": true, "showPrecisionHint": false, "correctAnswerFraction": true}], "stepsPenalty": 0, "prompt": "

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

", "showCorrectAnswer": true, "type": "gapfill", "marks": 0}, {"steps": [{"variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "

The order of operation dictates that we deal with multiplication and division before addition and subtraction, that is 

\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*c}-\\var{a*b}+\\var{g}$
$=$$\\var{ans3}$
", "marks": 0, "type": "information"}], "variableReplacements": [], "scripts": {}, "variableReplacementStrategy": "originalfirst", "gaps": [{"variableReplacements": [], "minValue": "{ans3}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "maxValue": "{ans3}", "marks": 1, "type": "numberentry", "allowFractions": true, "showPrecisionHint": false, "correctAnswerFraction": true}], "stepsPenalty": 0, "prompt": "

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

", "showCorrectAnswer": true, "type": "gapfill", "marks": 0}], "rulesets": {}, "statement": "", "tags": ["order of operations", "precedence"], "advice": "", "functions": {}, "showQuestionGroupNames": false, "variable_groups": [], "question_groups": [{"pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered", "questions": []}], "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "ungrouped_variables": ["a", "b", "c", "ans1", "d", "f", "g", "ans2", "ans3", "list"], "variables": {"c": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "list[3]", "name": "c"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(-6..6 except 0)", "name": "d"}, "ans3": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "d*c-a*b+g", "name": "ans3"}, "g": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "list[3]", "name": "g"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "a*g", "name": "f"}, "list": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "shuffle(2..12)[0..4]", "name": "list"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "list[1]", "name": "a"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "list[2]", "name": "b"}, "ans2": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "d-a", "name": "ans2"}, "ans1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "a+b*c", "name": "ans1"}}, "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}]}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}