// Numbas version: exam_results_page_options {"name": "Kjell's copy of Addition & Subtraction of Negative Numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d"], "name": "Kjell's copy of Addition & Subtraction of Negative Numbers", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Recall that adding  $-3$ is the same as subtracting 3 and that subtracting $-3$ is the same as adding $3$.

\n

See the following page for an explanation of why this makes sense.

\n

http://www.mathsisfun.com/positive-negative-integers.html

\n

", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

$(\\var{a}) + (\\var{b})- (\\var{c}) - \\var{d}$

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "extension"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{a}+{b}-{c}-{d}", "minValue": "{a}+{b}-{c}-{d}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "extension"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Find the value of

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(-8..-2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-9..-2 except[a,b])", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random( -9..-3 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}}, "metadata": {"description": "

Testing -(-3) +(-2) etc. One part.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Kjell Hansen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/27/"}]}]}], "contributors": [{"name": "Kjell Hansen", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/27/"}]}