// Numbas version: exam_results_page_options {"name": "Multiply two fractions (some negative numbers)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"prompt": "

{a}{b} $\\ \\times \\ $ {c}{d} $\\ =\\ $ [[0]] $\\ \\times\\ $ [[1]] [[2]] $\\ \\times \\ $ [[3]] $\\ =\\ $ [[4]][[5]].

", "marks": 0, "showCorrectAnswer": true, "gaps": [{"marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "maxValue": "a", "showFeedbackIcon": true, "minValue": "a", "mustBeReducedPC": 0}, {"marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "maxValue": "c", "showFeedbackIcon": true, "minValue": "c", "mustBeReducedPC": 0}, {"marks": "1", "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "maxValue": "b", "showFeedbackIcon": true, "minValue": "b", "mustBeReducedPC": 0}, {"marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "maxValue": "d", "showFeedbackIcon": true, "minValue": "d", "mustBeReducedPC": 0}, {"marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "maxValue": "a*c", "showFeedbackIcon": true, "minValue": "a*c", "mustBeReducedPC": 0}, {"marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "maxValue": "b*d", "showFeedbackIcon": true, "minValue": "b*d", "mustBeReducedPC": 0}], "variableReplacements": [], "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "variable_groups": [], "rulesets": {"std": ["all"]}, "functions": {}, "tags": [], "name": "Multiply two fractions (some negative numbers)", "ungrouped_variables": ["a", "b", "c", "d"], "variablesTest": {"maxRuns": 100, "condition": "(a<>2 or c<>-4) and (b<>3 or d<>5) and gcd(a,b)=1 and gcd(c,d)=1 and (a<0 or c<0)"}, "extensions": [], "metadata": {"description": "

This question tests a student's ability to multiply two fractions. Some of the numerators or denominators will be negative.

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"js": "document.createElement('fraction');\ndocument.createElement('numerator');\ndocument.createElement('denominator');", "css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}\n"}, "variables": {"c": {"templateType": "anything", "name": "c", "group": "Ungrouped variables", "definition": "random(-99..99 except -1..1)", "description": "

Numerator of the second fraction.

"}, "d": {"templateType": "anything", "name": "d", "group": "Ungrouped variables", "definition": "random(2..99)", "description": "

Denominator of the second fraction.

"}, "b": {"templateType": "anything", "name": "b", "group": "Ungrouped variables", "definition": "random(2..99)", "description": "

Denomnator of the first fraction.

"}, "a": {"templateType": "anything", "name": "a", "group": "Ungrouped variables", "definition": "random(-99..99 except -1..1)", "description": "

Numerator of the first fraction.

"}}, "statement": "

Multiply the following fractions using the formula $\\dfrac{a}{b}\\times\\dfrac{c}{d}=\\frac{\\boxed{a}\\times \\boxed{c}}{\\boxed{b}\\times \\boxed{d}}=\\frac{\\boxed{a\\times c}}{\\boxed{b\\times d}}$.

\n

An example of a correct calculation would be $\\dfrac{2}{3}\\times\\dfrac{-4}{5}=\\frac{\\boxed{2}\\times\\boxed{-4}}{\\boxed{3}\\times\\boxed{5}}=\\frac{\\boxed{-8}}{\\boxed{15}}$.

\n

Note the final fraction should be left as it is and should not be entered in lowest form (if this is different).

", "advice": "

The correct calculation is $\\dfrac{\\var{a}}{\\var{b}}\\times\\dfrac{\\var{c}}{\\var{d}}=\\frac{\\boxed{\\var{a}}\\times\\boxed{\\var{c}}}{\\boxed{\\var{b}}\\times\\boxed{\\var{d}}}=\\frac{\\boxed{\\var{a*c}}}{\\boxed{\\var{b*d}}}$.

", "type": "question", "contributors": [{"name": "Anthony Brown", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/799/"}]}]}], "contributors": [{"name": "Anthony Brown", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/799/"}]}