// Numbas version: exam_results_page_options {"name": "2.3 Combining operations Q2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

order of operations

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variables": {"x4": {"definition": "random(10,12,14,16)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "x4"}, "x3": {"definition": "random(20..30)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "x3"}}, "advice": "", "ungrouped_variables": ["x3", "x4"], "name": "2.3 Combining operations Q2", "rulesets": {}, "preamble": {"css": "", "js": ""}, "tags": [], "variable_groups": [], "statement": "

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

", "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"type": "numberentry", "marks": 1, "unitTests": [], "variableReplacementStrategy": "originalfirst", "maxValue": "x3-x4/2", "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReducedPC": 0, "prompt": "

What is \$\\var{x3}-\\var{x4} \\div 2\$?

", "customMarkingAlgorithm": "selectiveFeedback:\n if (studentNumber=(x3-x4)/2,\n incorrect(\"You appear to have completed the subtraction before the division. Remember that division has higher precedence than subtraction.\");\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": "x3-x4/2", "scripts": {}, "mustBeReduced": false, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "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/"}]}