// Numbas version: exam_results_page_options {"name": "Calculations with Negative numbers", "feedback": {"showtotalmark": true, "advicethreshold": 0, "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "allQuestions": true, "shuffleQuestions": false, "percentPass": 0, "duration": 0, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "metadata": {"description": "

Questions on addition, subtraction, multiplication and powers of negative numbers.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "exam", "questions": [], "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Addition & Subtraction of Negative Numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}], "functions": {}, "ungrouped_variables": ["a", "c", "b", "d"], "tags": ["arithmetic", "Arithmetic", "Negative Numbers", "negative numbers"], "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": [{"prompt": "

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

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "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}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "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": []}]}, {"name": "Arithmetic with Negative Numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}], "functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "f"], "tags": ["Arithmetic", "arithmetic", "negative numbers", "Negative Numbers"], "preamble": {"css": "", "js": ""}, "advice": "

Recall that, for instance, adding  $-3$ is the same as subtracting $3$ and that $-3 \\times -4 = 12$

\n

See the following pages for further examples and some explanations of why this makes sense.

\n

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

\n

http://www.mathsisfun.com/multiplying-negatives.html

\n

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

$(\\var{a}) + (\\var{b})$

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "{a}+{b}", "minValue": "{a}+{b}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\var{d} \\times (\\var{c})$

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "{d}*{c}", "minValue": "{d}*{c}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$(\\var{b}) \\times (\\var{c})$

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "{b}*{c}", "minValue": "{b}*{c}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$ \\var{f} \\div 5$

\n

(Give your answer as a decimal.)

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{f}/5", "minValue": "{f}/5", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$\\dfrac{\\var{c}}{-5}$.

\n

(Give your answer as a decimal.)

\n

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{c}/(-5)", "minValue": "{c}/(-5)", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Find the value of the following:

", "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(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "f": {"definition": "random(-10..-1#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "f", "description": ""}}, "metadata": {"description": "

Testing addition, multiplication and division involving negative numbers.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Powers of negative numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}], "functions": {}, "ungrouped_variables": ["n", "ans1", "ans2", "m", "ans3", "ans4", "p"], "tags": ["exponents", "indices", "negative numbers", "Negative Numbers", "negatives", "powers"], "preamble": {"css": "", "js": ""}, "advice": "

Notice that we need to distinguish between, say, $-3^2$ and $(-3)^2$. The convention is that when we write $(-3)^2$ we mean the square of $-3$, which is $9$. When we write $-3^2$ we mean minus the square of $3$ or $-9$.

\n

In part (d), $\\var{m}^3 = \\var{m} \\times \\var{m} \\times \\var{m}$. Multiplying three negative numbers together will give us a negative answer.

\n

In part (e) the sign of the answer will depend on the power. Multiplying an even number of negative numbers will give us a positive answer; multiplying an odd number of negative numbers will give us a negative answer.

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

$\\var{n[0]}^2$ = [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans1}", "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$(\\var{n[1]})^2$ = [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans2}", "minValue": "{ans2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{-ans2}", "minValue": "{-ans2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$(\\var{m})^3$ = [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans3}", "minValue": "{ans3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

$(-1)^\\var{p}$ = [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans4}", "minValue": "{ans4}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Find the value of the following. You should try to do these without a  calculator but also check that you can use your calculator to get the correct answer.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"ans1": {"definition": "-n[0]^2", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "n[1]^2", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "m^3", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "ans4": {"definition": "(-1)^p", "templateType": "anything", "group": "Ungrouped variables", "name": "ans4", "description": ""}, "m": {"definition": "random(-5..-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "n": {"definition": "shuffle(-12..-2)[0..2]", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "p": {"definition": "random(4..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}}, "metadata": {"description": "

Distinguishing -(72) and (-7)2.

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