// Numbas version: exam_results_page_options {"name": "Divide 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": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This question tests a student's ability to divide one fraction by another (at least one of the numerators will be negative).

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

Numerator of the first fraction.

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

Denomnator of the first fraction.

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

Denominator of the second fraction.

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

Numerator of the second fraction.

", "group": "Ungrouped variables", "name": "c"}}, "variablesTest": {"condition": "(a<>2 or b<>3) and (c<>-4 or d<>5) and gcd(a,b)=1 and gcd(c,d)=1 and (a<0 or b<0 or c<0 or d<0)", "maxRuns": 100}, "extensions": [], "rulesets": {"std": ["all"]}, "variable_groups": [], "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"}, "tags": [], "advice": "

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

", "functions": {}, "parts": [{"scripts": {}, "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "prompt": "

{a}{b} $\\ \\div \\ $ {c}{d} $\\ =\\ $[[0]][[1]] $\\ \\times \\ $ [[2]][[3]] $\\ =\\ $ [[4]] $\\ \\times\\ $ [[5]] [[6]] $\\ \\times \\ $ [[7]] $\\ =\\ $ [[8]][[9]].

", "gaps": [{"mustBeReducedPC": 0, "minValue": "a", "correctAnswerFraction": false, "maxValue": "a", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "b", "correctAnswerFraction": false, "maxValue": "b", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "d", "correctAnswerFraction": false, "maxValue": "d", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": "1", "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "c", "correctAnswerFraction": false, "maxValue": "c", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "a", "correctAnswerFraction": false, "maxValue": "a", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "d", "correctAnswerFraction": false, "maxValue": "d", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "b", "correctAnswerFraction": false, "maxValue": "b", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "c", "correctAnswerFraction": false, "maxValue": "c", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "a*d", "correctAnswerFraction": false, "maxValue": "a*d", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}, {"mustBeReducedPC": 0, "minValue": "b*c", "correctAnswerFraction": false, "maxValue": "b*c", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "showFeedbackIcon": true, "marks": 1, "correctAnswerStyle": "plain", "type": "numberentry"}], "type": "gapfill"}], "ungrouped_variables": ["a", "b", "c", "d"], "statement": "

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

\n

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

\n

Note the final fraction should be left as it is and should not be entered in lowest form (if this is different). In addition any minus signs should be left where they end up.

", "name": "Divide two fractions (some negative numbers)", "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/"}]}