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

What is $\\var{x5} \\times \\var{x6}-\\var{x7}$?

", "maxValue": "x5*x6-x7", "showFeedbackIcon": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "minValue": "x5*x6-x7", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "mustBeReducedPC": 0, "mustBeReduced": false, "customMarkingAlgorithm": "selectiveFeedback:\n if (studentNumber=x5*(x6-x7),\n incorrect(\"You appear to have completed the subtraction before the multiplication. Remember that multiplication 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 )", "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": {"x5": {"name": "x5", "description": "", "definition": "random(3..7)", "group": "Ungrouped variables", "templateType": "anything"}, "x7": {"name": "x7", "description": "", "definition": "random(8..14)", "group": "Ungrouped variables", "templateType": "anything"}, "x6": {"name": "x6", "description": "", "definition": "random(3..5)", "group": "Ungrouped variables", "templateType": "anything"}}, "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["x5", "x6", "x7"], "tags": [], "statement": "

Use the rules for order of operations to calculate each of 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/"}]}