// Numbas version: exam_results_page_options {"name": "Subtract two fractions with the same denominator", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": "(a<>1 or b<>3 or d<>2) and gcd(a,d)=1 and gcd(b,d)=1"}, "statement": "
Subtract one fraction from another using the formula $\\dfrac{a}{b}-\\dfrac{c}{b}=\\frac{\\boxed{a}-\\boxed{c}}{\\boxed{b}}=\\frac{\\boxed{a-c}}{\\boxed{b}}$.
\nAn example of a correct calculation would be $\\dfrac{1}{2}-\\dfrac{3}{2}=\\frac{\\boxed{1}-\\boxed{3}}{\\boxed{2}}=\\frac{\\boxed{-2}}{\\boxed{2}}$.
\nNote the final fraction should be left as it is and should not be entered in lowest form (if this is different).
", "extensions": [], "advice": "The correct calculation is $\\dfrac{\\var{a}}{\\var{d}}-\\dfrac{\\var{b}}{\\var{d}}=\\frac{\\boxed{\\var{a}}-\\boxed{\\var{b}}}{\\boxed{\\var{d}}}=\\frac{\\boxed{\\var{a-b}}}{\\boxed{\\var{d}}}$.
", "rulesets": {"std": ["all"]}, "variable_groups": [], "metadata": {"description": "This question tests a student's ability to subtract a fraction from another one with the same denominator.
", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": ["a", "b", "d"], "tags": [], "parts": [{"variableReplacements": [], "scripts": {}, "showCorrectAnswer": true, "gaps": [{"correctAnswerStyle": "plain", "allowFractions": false, "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReduced": false, "scripts": {}, "mustBeReducedPC": 0, "maxValue": "a", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "minValue": "a", "marks": 1, "notationStyles": ["plain", "en", "si-en"]}, {"correctAnswerStyle": "plain", "allowFractions": false, "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReduced": false, "scripts": {}, "mustBeReducedPC": 0, "maxValue": "b", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "minValue": "b", "marks": 1, "notationStyles": ["plain", "en", "si-en"]}, {"correctAnswerStyle": "plain", "allowFractions": false, "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReduced": false, "scripts": {}, "mustBeReducedPC": 0, "maxValue": "d", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "minValue": "d", "marks": "1", "notationStyles": ["plain", "en", "si-en"]}, {"correctAnswerStyle": "plain", "allowFractions": false, "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReduced": false, "scripts": {}, "mustBeReducedPC": 0, "maxValue": "a-b", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "minValue": "a-b", "marks": 1, "notationStyles": ["plain", "en", "si-en"]}, {"correctAnswerStyle": "plain", "allowFractions": false, "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "showFeedbackIcon": true, "mustBeReduced": false, "scripts": {}, "mustBeReducedPC": 0, "maxValue": "d", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "minValue": "d", "marks": 1, "notationStyles": ["plain", "en", "si-en"]}], "type": "gapfill", "prompt": "Numerator of the first fraction.
", "definition": "random(1..99)", "name": "a", "templateType": "anything"}, "b": {"group": "Ungrouped variables", "description": "Numerator of the second fraction.
", "definition": "random(1..99)", "name": "b", "templateType": "anything"}, "d": {"group": "Ungrouped variables", "description": "The common denominator.
", "definition": "random(2..99)", "name": "d", "templateType": "anything"}}, "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/"}]}