// Numbas version: exam_results_page_options {"name": "random binary operation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "", "variable_groups": [], "preamble": {"js": "", "css": ""}, "parts": [{"customName": "", "mustBeReducedPC": 0, "correctAnswerStyle": "plain", "allowFractions": false, "showFractionHint": true, "maxValue": "a+sign*b", "useCustomName": false, "minValue": "a+sign*b", "unitTests": [], "customMarkingAlgorithm": "", "notationStyles": ["plain", "en", "si-en"], "variableReplacementStrategy": "originalfirst", "prompt": "

Let \$$a=\\var{a}, b=\\var{b}, \\text{sign}=\\var{sign} \$$

\n

(note sign is randomly $=\\pm1$)

\n

The question is $a+\\text{sign}\\times b$

\n

\n

What is $\\simplify[]{{a}+{sign*b} }$?

\n

or

\n

What is $\\simplify[noleadingminus]{ {a}+{sign*b} }$?

", "showFeedbackIcon": true, "type": "numberentry", "scripts": {}, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "variableReplacements": [], "showCorrectAnswer": true, "correctAnswerFraction": false, "marks": 1}], "extensions": [], "statement": "", "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "functions": {}, "metadata": {"licence": "Creative Commons Attribution-ShareAlike 4.0 International", "description": ""}, "tags": [], "name": "random binary operation", "ungrouped_variables": ["a", "b", "sign"], "variables": {"sign": {"templateType": "anything", "definition": "random(-1..1 except 0)", "description": "", "group": "Ungrouped variables", "name": "sign"}, "a": {"templateType": "anything", "definition": "random(-9..9 except 0)", "description": "", "group": "Ungrouped variables", "name": "a"}, "b": {"templateType": "anything", "definition": "random(-9..9 except 0..1)", "description": "", "group": "Ungrouped variables", "name": "b"}}, "contributors": [{"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}]}], "contributors": [{"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}