// Numbas version: exam_results_page_options {"name": "Volume of a sphere", "extensions": [], "custom_part_types": [], "resources": [["question-resources/sphere_T3D0QWG.png", "/srv/numbas/media/question-resources/sphere_T3D0QWG.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["sphere", "z", "volume"], "name": "Volume of a sphere", "tags": [], "advice": "

The volume of a sphere is $\\frac{4}{3}\\pi r^3.

", "rulesets": {}, "parts": [{"prompt": "

Calculate the volume of the sphere in cm$^3$. Give your answer to 2 decimal places.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{volume}+0.1", "minValue": "{volume}-0.1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "extensions": [], "statement": "

The diagram below shows a sphere.

\n

{image('resources/question-resources/'+sphere)}

\n

z = {z} cm

\n

Take $\\pi$ to be 3.14

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"volume": {"definition": "(4/3)*3.14*(z^3)", "templateType": "anything", "group": "Ungrouped variables", "name": "volume", "description": ""}, "sphere": {"definition": "'sphere_T3D0QWG.png'", "templateType": "anything", "group": "Ungrouped variables", "name": "sphere", "description": ""}, "z": {"definition": "random(1..25)", "templateType": "anything", "group": "Ungrouped variables", "name": "z", "description": ""}}, "metadata": {"description": "

Question about the volume of spheres

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}]}