// Numbas version: exam_results_page_options {"name": "Morten's copy of Fractions 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Morten's copy of Fractions 1", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Learn from your mistakes and have another attempt by clicking on 'Try another question like this one' until you get full marks.

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

$\\displaystyle\\frac{\\var{a}}{\\var{b}}+\\frac{\\var{c}}{\\var{b}}=$[[0]]

\n

$\\displaystyle\\frac{\\var{d}}{\\var{c}}-\\frac{\\var{a}}{\\var{c}}=$[[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "(a+c)/b", "minValue": "(a+c)/b", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": "0.5", "type": "numberentry"}, {"allowFractions": true, "variableReplacements": [], "maxValue": "(d-a)/c", "minValue": "(d-a)/c", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": "0.5", "type": "numberentry"}], "steps": [{"prompt": "

Add the numerators, keep the denominator unchanged.

\n

Since the deniminator is common in these fractions, it can easily be calculated as seen in this example:

\n

\\[\\frac{2}{3}+\\frac{5}{3}=\\frac{2+5}{3}=\\frac{7}{3}\\]

\n

The same rule goes for subtracting fractions: 

\n

\\[\\frac{7}{4}-\\frac{3}{4}=\\frac{7-3}{4}=\\frac{4}{4}=1\\]

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "0", "prompt": "

Calculate

\n

$\\displaystyle\\simplify{{h}/{f}-{j}/{g}}=$  [[0]]

\n

$\\displaystyle \\frac{\\var{a}}{\\var{d}}+\\var{f}=$ [[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "(h*g-j*f)/(f*g)", "minValue": "(h*g-j*f)/(f*g)", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": "0.5", "type": "numberentry"}, {"allowFractions": true, "variableReplacements": [], "maxValue": "(a+f*d)/(d)", "minValue": "(a+f*d)/(d)", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": "0.5", "type": "numberentry"}], "steps": [{"prompt": "

Expand the fraction to get a common denominator. Now you do the same as in the previous task.

\n
\n

\n

For example: $\\frac{5}{4}+\\frac{3}{8}$ expands the first fraction into $\\frac{10}{8}$ (by multiplying the numerator and denominator by 2), so that both fractions has the common denominator of 8. 

\n

\\[\\frac{5}{4}+\\frac{3}{8}=\\frac{5\\cdot 2}{4\\cdot 2}+\\frac{3}{8}=\\frac{10}{8}+\\frac{3}{8}=\\frac{13}{8}\\]

\n
\n

\n

Sometimes we need to expand all parts to get a common denominator, for example if we need to calculate  $\\frac{5}{4}-\\frac{2}{3}$. Here, we find 12 as the common denominator and calculates as such:

\n

\\[\\frac{5}{4}-\\frac{2}{3}=\\frac{5\\cdot 3}{4\\cdot 3}-\\frac{2\\cdot 4}{3\\cdot 4}=\\frac{15}{12}-\\frac{8}{12}=\\frac{7}{12}\\]

\n

Try to keep the common denomintar as low as possible.

\n
\n

\n

NB! Keep in mind that integers may be written as a fraction with the denominator 1. Example: $3=\\frac{3}{1}$.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "extensions": [], "statement": "

Calculate and give your answer as a fraction or an integer. Use / as the fractionline, for example $\\frac{2}{3}$ is written as 2/3.

", "variable_groups": [{"variables": ["a", "b", "c", "d", "f", "g", "h", "j"], "name": "numerical fractions"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..12)", "templateType": "anything", "group": "numerical fractions", "name": "a", "description": ""}, "c": {"definition": "random(2..12 except [a,b])", "templateType": "anything", "group": "numerical fractions", "name": "c", "description": ""}, "b": {"definition": "random(2..8 except a)", "templateType": "anything", "group": "numerical fractions", "name": "b", "description": ""}, "d": {"definition": "random(2..8 except[a,b,c,10])", "templateType": "anything", "group": "numerical fractions", "name": "d", "description": ""}, "g": {"definition": "random(2..9 except f)", "templateType": "anything", "group": "numerical fractions", "name": "g", "description": ""}, "f": {"definition": "random(2..9 except d)", "templateType": "anything", "group": "numerical fractions", "name": "f", "description": ""}, "h": {"definition": "random(3..5 except [f,g])", "templateType": "anything", "group": "numerical fractions", "name": "h", "description": ""}, "j": {"definition": "random(2..9 except [f,g,h])", "templateType": "anything", "group": "numerical fractions", "name": "j", "description": ""}}, "metadata": {"description": "

Add, subtract, multiply and divide numerical fractions.

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