// Numbas version: exam_results_page_options {"name": "Order of operations: basics with steps", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "ans1", "d", "f", "g", "ans2", "ans3", "list"], "name": "Order of operations: basics with steps", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "
$\\var{a}+\\var{b}\\times\\var{c}=$ [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "We must deal with multiplication and division before addition and subtraction:
\n$\\var{a}+\\var{b}\\times\\var{c}$ | \n$=$ | \n$\\var{a}+(\\var{b}\\times\\var{c})$ | \n
\n | $=$ | \n$\\var{a}+\\var{b*c}$ | \n
\n | $=$ | \n$\\var{ans1}$ | \n
$\\var{d}-\\var{f}\\div\\var{g}=$ [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "We must deal with multiplication and division before addition and subtraction:
\n$\\var{d}-\\var{f}\\div\\var{g}$ | \n$=$ | \n$\\var{d}-(\\var{f}\\div\\var{g})$ | \n
\n | $=$ | \n$\\var{d}-\\var{a}$ | \n
\n | $=$ | \n$\\var{ans2}$ | \n
$\\var{d}\\times\\var{c}-\\var{b}\\times\\var{a}+\\var{g^2}\\div \\var{g}=$ [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "We must deal with multiplication and division before addition and subtraction:
\n$\\var{d}\\times\\var{c}-\\var{b}\\times\\var{a}+\\var{g^2}\\div \\var{g}$ | \n$=$ | \n$(\\var{d}\\times\\var{c})-(\\var{b}\\times\\var{a})+(\\var{g^2}\\div \\var{g})$ | \n
\n | $=$ | \n$\\var{d*c}-\\var{a*b}+\\var{g}$ | \n
\n | $=$ | \n$\\var{ans3}$ | \n
Simplify the following to find the value of each expression:
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "list[1]", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "list[3]", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "list[2]", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(-6..6 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "list[3]", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "a*g", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "ans1": {"definition": "a+b*c", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "d-a", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "d*c-a*b+g", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "list": {"definition": "shuffle(2..12)[0..4]", "templateType": "anything", "group": "Ungrouped variables", "name": "list", "description": ""}}, "metadata": {"description": "Order of precedence for multiplication, division, addition, subtraction.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "David Rickard", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/451/"}]}]}], "contributors": [{"name": "David Rickard", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/451/"}]}