// Numbas version: exam_results_page_options {"name": "Basic arithmetic operations: addition and subtraction", "extensions": [], "custom_part_types": [], "resources": [["question-resources/drawingresize_grbP9s8.svg", "/srv/numbas/media/question-resources/drawingresize_grbP9s8.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Basic arithmetic operations: addition and subtraction", "type": "question", "statement": "

Calculate the following:

", "variablesTest": {"condition": "", "maxRuns": "100"}, "variables": {"pos": {"description": "

Random positive integers.

", "name": "pos", "group": "Ungrouped variables", "templateType": "anything", "definition": "repeat(random(1..300),5)"}, "neg": {"description": "

Random negative integers.

", "name": "neg", "group": "Ungrouped variables", "templateType": "anything", "definition": "repeat(random(-300..-1),8)"}, "dec": {"description": "

Random decimals.

", "name": "dec", "group": "Ungrouped variables", "templateType": "anything", "definition": "repeat(random(0..50 #0.01 except 0..50), 7)"}}, "extensions": [], "functions": {}, "tags": ["addition", "Addition", "Decimals", "decimals", "subtraction", "taxonomy"], "variable_groups": [], "parts": [{"scripts": {}, "variableReplacements": [], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "scripts": {}, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "maxValue": "pos[0]+pos[1]+pos[2]", "showFeedbackIcon": true, "minValue": "pos[0]+pos[1]+pos[2]", "correctAnswerStyle": "plain", "allowFractions": false, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "marks": "1", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

$\\var{pos[0]} + \\var{pos[1]} + \\var{pos[2]}=$ [[0]]

", "marks": 0}, {"scripts": {}, "variableReplacements": [], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "scripts": {}, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "maxValue": "pos[3]+neg[0]", "showFeedbackIcon": true, "minValue": "pos[3]+neg[0]", "correctAnswerStyle": "plain", "allowFractions": false, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "marks": "1", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

$\\var{pos[3]} +(\\var{neg[0]})=$ [[0]]

", "marks": 0}, {"scripts": {}, "variableReplacements": [], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "scripts": {}, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "maxValue": "dec[0] - dec[1]", "showFeedbackIcon": true, "minValue": "dec[0] - dec[1]", "correctAnswerStyle": "plain", "allowFractions": false, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "marks": "1", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

$\\var{dec[0]} - \\var{dec[1]}=$ [[0]]

", "marks": 0}, {"scripts": {}, "variableReplacements": [], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "scripts": {}, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "maxValue": "neg[1]-neg[2]", "showFeedbackIcon": true, "minValue": "neg[1]-neg[2]", "correctAnswerStyle": "plain", "allowFractions": false, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "marks": "1", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

$\\var{neg[1]} - (\\var{neg[2]})=$ [[0]]

", "marks": 0}, {"scripts": {}, "variableReplacements": [], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"correctAnswerFraction": false, "scripts": {}, "type": "numberentry", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "maxValue": "neg[3]+dec[2]", "showFeedbackIcon": true, "minValue": "neg[3]+dec[2]", "correctAnswerStyle": "plain", "allowFractions": false, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "marks": "1", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "

$\\var{neg[3]} + \\var{dec[2]}=$ [[0]]

", "marks": 0}], "ungrouped_variables": ["dec", "neg", "pos"], "rulesets": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Addition and subtraction of integers and decimals.

"}, "preamble": {"css": "", "js": ""}, "advice": "

A sign between numbers usually tells us whether to add or subtract. Sometimes, we can see two signs following each other.

\n

We need to remember that two different signs (+ and - in any order) become a minus (-), while two same signs become a plus (+).

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
OperationFirst signSecond signResulting signResulting operationExample
Addition$+$$+$$+$Addition$3 + (+2) = 3 + 2 = 5$
Addition$+$$-$$-$Subtraction$3 + (-2) = 3 - 2 = 1$
Subtraction$-$$+$$-$Subtraction$3 - (+2) = 3 - 2 = 1$
Subtraction$-$$-$$+$Addition$3 - (-2) = 3 + 2 = 5$
\n

Another important thing to remember is to press AC on your calculator to clear it before you start the next calculation. If the following calculation starts with a minus, your calculator will assume you want to subtract something from your previous calculation, rather than start a new one.

", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}]}