// Numbas version: exam_results_page_options {"name": "Pupil Teacher Ratio randomised", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Pupil Teacher Ratio randomised", "preamble": {"js": "", "css": ""}, "variable_groups": [], "variables": {"percent": {"templateType": "anything", "name": "percent", "definition": "(1/(studentrat+1))*100", "description": "", "group": "Ungrouped variables"}, "studentrat": {"templateType": "anything", "name": "studentrat", "definition": "Random(17..22)", "description": "", "group": "Ungrouped variables"}}, "statement": "

The ratio of teachers to pupils in a school is 1:{studentrat}

", "parts": [{"precisionMessage": "You have not given your answer to the correct precision.", "type": "numberentry", "maxValue": "percent", "mustBeReduced": false, "showCorrectAnswer": true, "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "mustBeReducedPC": 0, "extendBaseMarkingAlgorithm": true, "precision": "2", "precisionType": "dp", "prompt": "

What percentage of the school population are teachers?

", "marks": "10", "scripts": {}, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "\nmark:\n apply(validNumber);\n if(isFraction,\n apply(cancelled)\n ,\n apply(correctPrecision)\n );\n switch(\n studentNumber=precround(100/(1+studentrat),studentPrecision),set_credit(1,\"Correct Answer, Well Done!\"),\n studentNumber=precround(100/studentrat,studentPrecision),set_credit(0.5,\"Some good work done but not quite there yet. Have a think about your denominator\"),\n studentNumber=precround(1/(1+studentrat),studentPrecision),set_credit(0.7,\"Is your answer a percentage?\"),\n studentNumber=precround((1+studentrat)/100.0,studentPrecision),set_credit(0.3,\"Something worthwhile here but you need to think further\"),\n set_credit(0,\"Incorrect\") \n )", "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "unitTests": [], "precisionPartialCredit": 0, "allowFractions": false, "variableReplacements": [], "minValue": "percent"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Simple ratio question with custom marking and partial credit possible

\n

The marking checks for some common errors and awards partial credit and appropriate feedback. The errors that give different levels of partial credit include: forgetting to add one to the denominator, forgetting to change to a percentage.

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "tags": [], "ungrouped_variables": ["studentrat", "percent"], "rulesets": {}, "functions": {}, "advice": "

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

\n

Convert this to a decimal by multiplying by 100.

\n

$\\frac{1}{\\simplify{1+{studentrat}}}*100=\\var{percent}$

\n

", "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/"}]}