// 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$\\var{a}+\\var{b}\\times\\var{c}$ | \n$=$ | \n$\\var{a}+\\var{b*c}$ | \n
\n | $=$ | \n$\\var{ans1}$ | \n
$\\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$\\var{d}-\\var{f}\\div\\var{g}$ | \n$=$ | \n$\\var{d}-\\var{a}$ | \n
\n | $=$ | \n$\\var{ans2}$ | \n
$\\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$\\var{d}\\times\\var{c}-\\var{b}\\times\\var{a}+\\var{g^2}\\div \\var{g}$ | \n$=$ | \n$\\var{d*c}-\\var{a*b}+\\var{g}$ | \n
\n | $=$ | \n$\\var{ans3}$ | \n
$\\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/"}]}