// Numbas version: exam_results_page_options {"name": "Clodagh's copy of Pupil Teacher Ratio", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "name": "Clodagh's copy of Pupil Teacher Ratio", "advice": "

The fraction of the school population that are teachers is $\\frac{1}{1+18}$

\n

Convert this to a decimal by multiplying by 100.

\n

$\\frac{1}{\\simplify{1+18}}*100=5.56%$

\n

", "variables": {"percent": {"templateType": "anything", "description": "", "definition": "(1/(studentrat+1))*100", "group": "Ungrouped variables", "name": "percent"}, "studentrat": {"templateType": "anything", "description": "", "definition": "Random(17..22)", "group": "Ungrouped variables", "name": "studentrat"}}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "metadata": {"description": "

A simple question on ratio. Awarding Partial Credit. No randomisation in the question.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

The ratio of teachers to pupils in a school is 1:18

", "preamble": {"css": "", "js": ""}, "variable_groups": [], "extensions": [], "parts": [{"precisionType": "dp", "precisionPartialCredit": 0, "mustBeReducedPC": 0, "scripts": {"mark": {"order": "instead", "script": "var answer=this.studentAnswer;\n// mark the answer\nif(answer==5.26) {\n this.setCredit(10,'Correct. Well done!');\n} else if(answer==5.56) {\n this.setCredit(5,'Some good work here, but not quite there yet. Have a think about your denominator.');\n} else if(answer==0.05){\n this.setCredit(7, 'Nearly there. Did you forget to change to a percentage?');\n} else if(answer==1.9){\n this.setCredit(3, 'You have correctly worked with 19 but you need to rethink what you are doing.');\n}else{\n this.setCredit(0,'Not correct');\n}\n\n// you must set this.answered to say if the student gave a valid answer\nthis.answered = answer!==undefined;\n"}}, "minValue": "percent", "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "precision": "2", "showCorrectAnswer": true, "allowFractions": false, "unitTests": [], "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "precisionMessage": "You have not given your answer to the correct precision.", "prompt": "

What percentage of the school population are teachers?

", "customMarkingAlgorithm": "", "correctAnswerFraction": false, "marks": 1, "maxValue": "percent", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "variableReplacements": [], "showFeedbackIcon": true, "mustBeReduced": false}], "ungrouped_variables": ["studentrat", "percent"], "type": "question", "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}]}]}], "contributors": [{"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}, {"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}]}