// Numbas version: exam_results_page_options {"name": "2.3 Combining operations Q3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"preventleave": false, "allowregen": true, "showfrontpage": false}, "question_groups": [{"questions": [{"tags": [], "variable_groups": [], "variables": {"x7": {"name": "x7", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "random(8..14)"}, "x6": {"name": "x6", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "random(3..5)"}, "x5": {"name": "x5", "group": "Ungrouped variables", "description": "", "templateType": "anything", "definition": "random(3..7)"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["x5", "x6", "x7"], "name": "2.3 Combining operations Q3", "parts": [{"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 )", "type": "numberentry", "minValue": "x5*x6-x7", "showFeedbackIcon": true, "variableReplacements": [], "maxValue": "x5*x6-x7", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "allowFractions": false, "correctAnswerStyle": "plain", "prompt": "

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

", "mustBeReduced": false, "marks": 1, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "correctAnswerFraction": false}], "advice": "", "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/"}], "functions": {}, "rulesets": {}, "type": "question", "extensions": [], "preamble": {"js": "", "css": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

order of operations

"}, "statement": "

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

"}], "pickingStrategy": "all-ordered"}], "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/"}]}