// Numbas version: exam_results_page_options {"name": "Order of operations addition and subtraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

order of operations

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variables": {"x2": {"definition": "random(1..7)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "x2"}, "x0": {"definition": "random(14..19)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "x0"}, "x1": {"definition": "random(1..7)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "x1"}}, "advice": "", "ungrouped_variables": ["x0", "x1", "x2"], "name": "Order of operations addition and subtraction", "rulesets": {}, "preamble": {"css": "", "js": ""}, "tags": [], "variable_groups": [], "statement": "", "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"type": "numberentry", "marks": 1, "unitTests": [], "variableReplacementStrategy": "originalfirst", "maxValue": "x0-x1+x2", "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReducedPC": 0, "prompt": "

What is $\\var{x0}-\\var{x1}+\\var{x2}$?

", "customMarkingAlgorithm": "selectiveFeedback:\n if (studentNumber=x0-(x1+x2),\n incorrect(\"You appear to have completed the addition before the subtraction. Remember that addition and subtraction have the same precedence so should be completed from left to right.\");\n 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 )", "minValue": "x0-x1+x2", "mustBeReduced": false, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "variableReplacements": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "allowFractions": false}], "extensions": [], "functions": {}, "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/"}]}