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

Calculate: $ a_1 \\times a_2 \\times a_3 \\times a_4 $ and $ \\frac{b_1 \\times b_2 \\times b_3 \\times b_4}{b_5 \\times b_6} $

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Calculate the following:

", "advice": "

a) Ignoring the signs $ \\var{abs(a)} \\times \\var{abs(b)} \\times \\var{abs(c)} \\times \\var{abs(d)} = \\var{abs(a)*abs(b)*abs(c)*abs(d)} $.

\n

Since there are $ \\var{length(filter(x<0,x,[a,b,c,d]))}$ negative signs in the question, which is even, the answer is positive.

\n

This means the answer is: $ \\var{a} \\times \\var{b} \\times \\var{c} \\times \\var{d}= \\var{a*b*c*d} $.

\n

a) Ignoring the signs $ \\var{abs(a)} \\times \\var{abs(b)} \\times \\var{abs(c)} \\times \\var{abs(d)} = \\var{abs(a)*abs(b)*abs(c)*abs(d)} $.

\n

Since there are $\\var{length(filter(x<0,x,[a,b,c,d]))}$ negative signs in the question, which is odd, the answer is negative.

\n

This means the asnwer is, $ \\var{a} \\times \\var{b} \\times \\var{c} \\times \\var{d}= \\var{a*b*c*d} $. 

\n

b) Ignoring the signs $ \\frac{ \\var{abs(b1)} \\times \\var{abs(b2)} \\times \\var{abs(b3)}}{ \\var{abs(b4)}  \\times \\var{abs(b5)}} = \\frac{ \\var{abs(b1)*abs(b2)*abs(b3)} }{ \\var{abs(b4)*abs(b5)}} =  \\var{abs(b1)*abs(b2)*abs(b3) / (abs(b4)*abs(b5))} $ .

\n

Since the number of negative signs in the question is even the answer is positive.

\n

Therefore the answer is: $ \\var{(b1)*(b2)*(b3) / ((b4)*(b5))} $

\n

b)Ignoring the signs $ \\frac{ \\var{abs(b1)} \\times \\var{abs(b2)} \\times \\var{abs(b3)}}{ \\var{abs(b4)}  \\times \\var{abs(b5)}} = \\frac{ \\var{abs(b1)*abs(b2)*abs(b3)} }{ \\var{abs(b4)*abs(b5)}} =  \\var{abs(b1)*abs(b2)*abs(b3) / (abs(b4)*abs(b5))} $ .

\n

Since the number of negative signs in the question is odd the answer is negative.

\n

Therefore the answer is: $ \\var{(b1)*(b2)*(b3) / ((b4)*(b5))} $

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-9..-2)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "answer_a": {"name": "answer_a", "group": "Ungrouped variables", "definition": "a*b*c*d", "description": "", "templateType": "anything", "can_override": false}, "even_a": {"name": "even_a", "group": "Ungrouped variables", "definition": "mod(length(filter(x<0,x,[a,b,c,d])),2) = 0", "description": "", "templateType": "anything", "can_override": false}, "odd_a": {"name": "odd_a", "group": "Ungrouped variables", "definition": "not even_a", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "random(-9..-2)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b4": {"name": "b4", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b5": {"name": "b5", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything", "can_override": false}, "even_b": {"name": "even_b", "group": "Ungrouped variables", "definition": "mod(length(filter(x<0,x,[b1,b2,b3,b4,b5])),2) = 0", "description": "", "templateType": "anything", "can_override": false}, "odd_b": {"name": "odd_b", "group": "Ungrouped variables", "definition": "not even_b", "description": "", "templateType": "anything", "can_override": false}, "answer_b": {"name": "answer_b", "group": "Ungrouped variables", "definition": "(b1*b2*b3)/(b4*b5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "235"}, "ungrouped_variables": ["a", "b", "c", "d", "answer_a", "even_a", "odd_a", "b1", "b2", "b3", "b4", "b5", "even_b", "odd_b", "answer_b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Multiplication with negative numbers", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

a) $\\var{a} \\times \\var{b} \\times \\var{c} \\times \\var{d}$

", "minValue": "answer_a", "maxValue": "answer_a", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Division with negative numbers", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

b) $ \\frac{ \\var{b1} \\times \\var{b2} \\times \\var{b3}}{ \\var{b4}  \\times \\var{b5}}$

", "minValue": "answer_b", "maxValue": "answer_b", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": "50", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}]}]}], "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}]}