// Numbas version: exam_results_page_options {"name": "Johan's copy of Gapfills in fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "", "tags": ["demo"], "variable_groups": [], "showQuestionGroupNames": false, "rulesets": {"std": ["all"]}, "name": "Johan's copy of Gapfills in fractions", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "notes": "", "description": "

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

"}, "parts": [{"steps": [{"marks": 0, "type": "information", "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": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}}], "prompt": "

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

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

Please enter numbers to create 4 equivalent fractions.

", "variables": {"denom3": {"name": "denom3", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[2]*denominator"}, "num4": {"name": "num4", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[3]"}, "denom1": {"name": "denom1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[0]*denominator"}, "denom4": {"name": "denom4", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[3]*denominator"}, "mults": {"name": "mults", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "shuffle(list(2..8)+[10,12,16])[0..4]"}, "denominator": {"name": "denominator", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..6)"}, "num3": {"name": "num3", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[2]"}, "num2": {"name": "num2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[1]"}, "num1": {"name": "num1", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[0]"}, "denom2": {"name": "denom2", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "mults[1]*denominator"}}, "ungrouped_variables": ["denominator", "mults", "num1", "denom1", "num2", "denom2", "num3", "denom3", "num4", "denom4"], "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "variablesTest": {"condition": "denom4 <=200", "maxRuns": 100}, "type": "question", "functions": {}, "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');"}, "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}]}], "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}