// Numbas version: exam_results_page_options {"name": "Simple BODMAS", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Simple BODMAS", "tags": [], "metadata": {"description": "

An order of operation question using +,-,* with signed integers, with up to 4 variables.

\n

The questions are the exercises from Q3 of HELM Book 1.1.5

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Evaluate: 

", "advice": "

Use BODMAS to compute brackets first, then $\\times$ and $\\div$, then $+$ and $-$. Remember that subtracting a negative number is the same as adding a positive number.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v1,v2,v3,v4": {"name": "v1,v2,v3,v4", "group": "Ungrouped variables", "definition": "repeat(random(1..15),4)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..12)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "expression([v1 + \"+\" + v2 + \"*\" + v3,\n v1 + \"-\" + v2 + \"-\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3,\n v1 + \"-\" + v2 + \"*\" + v3,\n v1 + \"*\" + v2 + \"-\" + v3,\n \"(\" + v1 + \"/\" + v2 + \")+\" + v3,\n v1 + \"/\" + v2 + \"+\" + v3,\n v1 + \"+\" + v2 + \"-\" + v3 + \"-\" + v4,\n v1 + \"*\" + v2 + \"+\" + v3 + \"*\" + v4,\n \"-(-\" + v1 + \")\",\n v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"-(-\" + v1 + \")\",\n \"-\" + v1 + \"+(-\" + v1 + \")\"\n ][idx])", "description": "", "templateType": "anything", "can_override": false}, "dexpr": {"name": "dexpr", "group": "Ungrouped variables", "definition": "latex(expr)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1,v2,v3,v4", "idx", "expr", "dexpr"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{dexpr}$= [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "eval(expr)", "maxValue": "eval(expr)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}