// Numbas version: exam_results_page_options {"name": "2.3 Combining operations Q6", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "name": "2.3 Combining operations Q6", "parts": [{"allowFractions": true, "scripts": {}, "unitTests": [], "correctAnswerStyle": "plain", "prompt": "

What is $\\var{a0}\\div \\var{a3}\\times \\var{a2}-\\var{a1}\\times\\var{a5}$

", "maxValue": "a0/a3*a2-a1*a5", "showFeedbackIcon": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "minValue": "a0/a3*a2-a1*a5", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "mustBeReducedPC": 0, "mustBeReduced": false, "customMarkingAlgorithm": "selectiveFeedback:\n switch (studentNumber=a0/(a3*a2)-a1*a5,\n (incorrect(\"You appear to have completed the first multiplication before the division. Remember that multiplication and division should be completed left to right.\"); end()),\n studentNumber=a0/a3*(a2-a1)*a5,\n (incorrect(\"You appear to have completed the subtraction before the multiplication and division. Remember that multiplication and division have higher precedence than subtraction.\"); end()),\n studentNumber=a0/(a3*(a2-a1))*a5,\n (incorrect(\"You appear to have completed the subtraction before the multiplication and division. Remember that multiplication and division have higher precedence than subtraction and multiplication and division should be done from left to right.\"); end()),\n studentNumber=a0/(a3*a2-a1*a5),\n (incorrect(\"You appear to have completed the multiplication and subtraction before the division. Remember that multiplication and division have higher precedence than subtraction.\"); end()),\"\"\n )\n\nmark (Mark the student's answer):\n apply(selectiveFeedback);\n apply(validNumber);\n apply(numberInRange);\n assert(numberInRange,end());\n if(isFraction,\n apply(cancelled)\n ,\n apply(correctPrecision)\n )", "marks": 1, "extendBaseMarkingAlgorithm": true, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": []}], "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "functions": {}, "advice": "", "rulesets": {}, "metadata": {"description": "

order of operations

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variables": {"a5": {"name": "a5", "description": "", "definition": "random(2..5)", "group": "Ungrouped variables", "templateType": "anything"}, "a1": {"name": "a1", "description": "", "definition": "random(2..3)", "group": "Ungrouped variables", "templateType": "anything"}, "a3": {"name": "a3", "description": "", "definition": "random(2..5 except a2)", "group": "Ungrouped variables", "templateType": "anything"}, "a0": {"name": "a0", "description": "", "definition": "random(2..3)*a2*a3", "group": "Ungrouped variables", "templateType": "anything"}, "a2": {"name": "a2", "description": "", "definition": "random(2..8)", "group": "Ungrouped variables", "templateType": "anything"}}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["a0", "a2", "a3", "a1", "a5"], "tags": [], "statement": "

Use the rules for order of operations to calculate the following:

", "type": "question", "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}]}]}], "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}]}