// Numbas version: exam_results_page_options {"name": "Anthony's copy of Gapfills in fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["denominator", "mults", "num1", "denom1", "num2", "denom2", "num3", "denom3", "num4", "denom4"], "name": "Anthony's copy of Gapfills in fractions", "tags": [], "preamble": {"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", "js": "document.createElement('fraction');\ndocument.createElement('numerator');\ndocument.createElement('denominator');"}, "advice": "", "rulesets": {"std": ["all"]}, "parts": [{"stepsPenalty": 0, "prompt": "

{num1}[[0]] = {num2}{denom2} = {num3}[[1]] = [[2]] + [[3]]{denom4}

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

The numerator of the first fraction ({num1}), is the numerator of the second fraction ({num2}), divided by {mult2}.

\n

So the denominator of the first fraction must be the denominator of the second fraction ({denom2}), divided by {mult2} = ?

\n

You can use the same idea to work out the denomnator of the third fraction, and the numerator of the fourth fraction...

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "denom1", "minValue": "denom1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "denom3", "minValue": "denom3", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "num4", "minValue": "num4", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "num4", "minValue": "num4", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Please enter numbers to create 4 equivalent fractions.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "denom4 <=200"}, "variables": {"denom1": {"definition": "mults[0]*denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "denom1", "description": ""}, "num4": {"definition": "mults[3]", "templateType": "anything", "group": "Ungrouped variables", "name": "num4", "description": ""}, "denom3": {"definition": "mults[2]*denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "denom3", "description": ""}, "denom2": {"definition": "mults[1]*denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "denom2", "description": ""}, "num1": {"definition": "mults[0]", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "mults[1]", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "num3": {"definition": "mults[2]", "templateType": "anything", "group": "Ungrouped variables", "name": "num3", "description": ""}, "denominator": {"definition": "random(2..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "denominator", "description": ""}, "mults": {"definition": "shuffle(list(2..8)+[10,12,16])[0..4]", "templateType": "anything", "group": "Ungrouped variables", "name": "mults", "description": ""}, "denom4": {"definition": "mults[3]*denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "denom4", "description": ""}}, "metadata": {"description": "

Lay out gapfills so the student has to enter either the numerator or denominator of a fraction.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "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/"}]}