// Numbas version: exam_results_page_options {"name": "Pupil Teacher Ratio", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "

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

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"studentrat": {"description": "", "templateType": "anything", "definition": "Random(17..22)", "name": "studentrat", "group": "Ungrouped variables"}, "percent": {"description": "", "templateType": "anything", "definition": "(1/(studentrat+1))*100", "name": "percent", "group": "Ungrouped variables"}}, "preamble": {"js": "", "css": ""}, "extensions": [], "tags": [], "rulesets": {}, "variable_groups": [], "statement": "

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

", "functions": {}, "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

", "ungrouped_variables": ["studentrat", "percent"], "name": "Pupil Teacher Ratio", "parts": [{"precisionPartialCredit": 0, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 1, "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"}}, "variableReplacementStrategy": "originalfirst", "minValue": "percent", "strictPrecision": false, "unitTests": [], "correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "precision": "2", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showPrecisionHint": true, "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "showCorrectAnswer": true, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "maxValue": "percent", "mustBeReducedPC": 0, "allowFractions": false, "prompt": "

What percentage of the school population are teachers?

"}], "type": "question", "contributors": [{"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}]}]}], "contributors": [{"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}]}